diff --git a/.env b/.env index 87eaadf2..b608af78 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ -VUE_APP_I18N_LOCALE=zh -VUE_APP_I18N_FALLBACK_LOCALE=zh +SENTRY_URL=https://sentry.io +SENTRY_ORG=penguin-statistics +SENTRY_PROJECT=frontend \ No newline at end of file diff --git a/.eslintrc b/.eslintrc index 4fd29d57..1c1e1b4d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,7 +1,8 @@ { "root": true, "globals": { - "GIT_COMMIT": true + "GIT_COMMIT": true, + "workbox": true }, "env": { "node": true diff --git a/README.md b/README.md index 5938e36d..4d261e0b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Penguin Statistics - Logo + width="96px" /> # Penguin Statistics! [![License](https://img.shields.io/github/license/penguin-statistics/frontend-v2)](https://github.com/penguin-statistics/frontend-v2/blob/dev/LICENSE) @@ -8,6 +8,20 @@ [![Last Commit](https://img.shields.io/github/last-commit/penguin-statistics/frontend-v2)](https://github.com/penguin-statistics/frontend-v2/commits/dev) [![Docs](https://img.shields.io/badge/docs-GitBook-blue)](https://developer.penguin-stats.io) -## Contribute Guideline -Our contribute guideline can be found at [Penguin Developers](https://developer.penguin-stats.io) +This is the **frontend** project repository for the [Penguin Statistics](https://penguin-stats.io/?utm_source=github) website. + +## Maintainers +This frontend project has mainly being maintained by the following contributors (in alphabetical order): +- [AlvISsReimu](https://github.com/AlvISsReimu) +- [AsahiLuna](https://github.com/AsahiLuna) +- [GalvinGao](https://github.com/GalvinGao) + +> The full list of active contributors of the *Penguin Statistics* project can be found at the [Team Members page](https://penguin-stats.io/about/members) of the website. + +## Supports +Thanks for the kindness support for this Open Source project from: +- [![Sentry.io](https://img.shields.io/badge/Sentry.io-DBD3E9?logo=sentry&style=flat&logoColor=DBD3E9&labelColor=16111C&color=9990AB)](https://sentry.io) + +## How to contribute? +Our contribute guideline can be found at [Penguin Developers](https://developer.penguin-stats.io). PRs are always more than welcome! diff --git a/docs/images/sentry.io.svg b/docs/images/sentry.io.svg new file mode 100644 index 00000000..4902e328 --- /dev/null +++ b/docs/images/sentry.io.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/now.json b/now.json index 28c16ab2..608fa279 100644 --- a/now.json +++ b/now.json @@ -1,6 +1,15 @@ { "version": 2, - "env": { - "IS_NOW_BUILD": "yes" - } + "public": true, + "headers": [ + { + "source": "/service-worker.js", + "headers" : [ + { + "key" : "Cache-Control", + "value" : "public, max-age=0, must-revalidate" + } + ] + } + ] } \ No newline at end of file diff --git a/package.json b/package.json index e9bfed9d..4fd9b01d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "penguin-stats-frontend", - "version": "1.1.4", + "version": "1.1.5", "private": true, "scripts": { "serve": "vue-cli-service serve", @@ -8,20 +8,21 @@ "build:single": "npx --max_old_space_size=4096 vue-cli-service build", "lint": "vue-cli-service lint", "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'", - "submit": "git add . && git cz && git push" + "submit": "git add . && git cz && git push", + "preview": "yarn build && serve -s -d dist", + "preview:single": "yarn build:single && serve -s -d dist" }, "dependencies": { "@babel/plugin-transform-modules-commonjs": "^7.8.3", "@chenfengyuan/vue-number-input": "^1.2.1", + "@sentry/apm": "^5.15.4", "@sentry/browser": "^5.6.2", "@sentry/integrations": "^5.6.1", "animejs": "^3.1.0", - "aos": "^2.3.4", "clipboard-polyfill": "^2.8.6", - "core-js": "^2.6.5", - "dayjs": "^1.8.21", + "dayjs": "^1.8.23", + "extract-domain": "^2.2.1", "js-cookie": "^2.2.1", - "secure-ls": "^1.2.6", "vue": "^2.6.10", "vue-analytics": "^5.22.1", "vue-i18n": "^8.0.0", @@ -35,7 +36,6 @@ "@mdi/font": "^3.8.95", "@vue/cli-plugin-babel": "^3.9.0", "@vue/cli-plugin-eslint": "^3.9.0", - "@vue/cli-plugin-pwa": "^3.10.0", "@vue/cli-service": "^3.9.0", "axios": "^0.19.0", "babel-eslint": "^10.0.1", @@ -50,9 +50,11 @@ "stylus-loader": "^3.0.1", "vue-cli-plugin-i18n": "^0.6.1", "vue-cli-plugin-vuetify": "^2.0.5", + "vue-svg-inline-loader": "^1.5.0", "vue-template-compiler": "^2.6.10", "vuetify-loader": "^1.4.3", - "webpack": "^4.42.0" + "webpack": "^4.42.1", + "workbox-webpack-plugin": "^5.1.2" }, "postcss": { "plugins": { diff --git a/public/index.html b/public/index.html index 8125db4b..4660766d 100644 --- a/public/index.html +++ b/public/index.html @@ -1,269 +1,32 @@ - + - + 企鹅物流数据统计 + + - - - - 企鹅物流数据统计 - - + + + + + + + + - +
+ src="https://penguin.upyun.galvincdn.com/logos/penguin_stats_logo.png"/>
@@ -282,123 +45,14 @@
- - diff --git a/src/App.vue b/src/App.vue index 9e664263..d742e53a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,22 +1,27 @@ + diff --git a/src/views/About/Contact.vue b/src/views/About/Contact.vue index 04f7eef5..58c374e5 100644 --- a/src/views/About/Contact.vue +++ b/src/views/About/Contact.vue @@ -45,6 +45,7 @@

{{ $t('contact.contact_0') }} diff --git a/src/views/About/Contribute.vue b/src/views/About/Contribute.vue index c34e9575..08111420 100644 --- a/src/views/About/Contribute.vue +++ b/src/views/About/Contribute.vue @@ -94,36 +94,36 @@

{{ $t('contribute.contribute_0') }} -
-

-