diff --git a/package.json b/package.json index 634c334..55865b9 100644 --- a/package.json +++ b/package.json @@ -11,23 +11,25 @@ "test": "echo \"No test specified\" && exit 0" }, "dependencies": { - "axios": "^1.2.1", - "vuex": "^4.0.1", "@quasar/extras": "^1.0.0", + "@waiting/base64": "^4.2.9", + "axios": "^1.2.1", + "js-base64": "^3.7.5", "quasar": "^2.6.0", "vue": "^3.0.0", - "vue-router": "^4.0.0" + "vue-router": "^4.0.0", + "vuex": "^4.0.1" }, "devDependencies": { + "@quasar/app-vite": "^1.0.0", + "@types/node": "^12.20.21", "@typescript-eslint/eslint-plugin": "^5.10.0", "@typescript-eslint/parser": "^5.10.0", - "eslint": "^8.10.0", - "eslint-plugin-vue": "^9.0.0", - "eslint-config-prettier": "^8.1.0", - "prettier": "^2.5.1", - "@types/node": "^12.20.21", - "@quasar/app-vite": "^1.0.0", "autoprefixer": "^10.4.2", + "eslint": "^8.10.0", + "eslint-config-prettier": "^8.1.0", + "eslint-plugin-vue": "^9.0.0", + "prettier": "^2.5.1", "typescript": "^4.5.4" }, "engines": { @@ -35,4 +37,4 @@ "npm": ">= 6.13.4", "yarn": ">= 1.21.1" } -} \ No newline at end of file +} diff --git a/quasar.config.js b/quasar.config.js index 42cb97b..4368452 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -85,7 +85,11 @@ module.exports = configure(function (/* ctx */) { // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework framework: { - config: {}, + config: { + notify: { + /* look at QuasarConfOptions from the API card */ + }, + }, // iconSet: 'material-icons', // Quasar icon set // lang: 'en-US', // Quasar language pack @@ -98,7 +102,7 @@ module.exports = configure(function (/* ctx */) { // directives: [], // Quasar plugins - plugins: [], + plugins: ['Notify'], }, // animations: 'all', // --- includes all animations diff --git a/src/api/api.ts b/src/api/api.ts new file mode 100644 index 0000000..1b26bbe --- /dev/null +++ b/src/api/api.ts @@ -0,0 +1,7 @@ +import { api } from 'src/boot/axios'; +class getdata { + async get_server() { + return await api.get('https://api.shagain.club/api.php?type=list'); + } +} +export { getdata }; diff --git a/src/api/models.ts b/src/api/models.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/components/LinkItem.vue b/src/components/LinkItem.vue new file mode 100644 index 0000000..5537537 --- /dev/null +++ b/src/components/LinkItem.vue @@ -0,0 +1,66 @@ + + + diff --git a/src/components/models.ts b/src/components/models.ts index 6945920..911dc6f 100644 --- a/src/components/models.ts +++ b/src/components/models.ts @@ -6,3 +6,11 @@ export interface Todo { export interface Meta { totalCount: number; } +export interface server { + host: string; + id: number; + ip: string; + istls: number; + port: number; + tips: string; +} diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index e7488f0..fbbabc1 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -1,10 +1,8 @@ diff --git a/src/pages/IndexPage.vue b/src/pages/IndexPage.vue index 0b955bf..2160fc5 100644 --- a/src/pages/IndexPage.vue +++ b/src/pages/IndexPage.vue @@ -1,44 +1,61 @@ diff --git a/yarn.lock b/yarn.lock index e03c3c9..c411e2a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -451,6 +451,11 @@ resolved "https://registry.npmmirror.com/@vue/shared/-/shared-3.2.47.tgz#e597ef75086c6e896ff5478a6bfc0a7aa4bbd14c" integrity sha512-BHGyyGN3Q97EZx0taMQ+OLNuZcW3d37ZEVmEAyeoA9ERdGvm9Irc/0Fua8SNyOtV1w6BS4q25wbMzJujO9HIfQ== +"@waiting/base64@^4.2.9": + version "4.2.9" + resolved "https://registry.npmmirror.com/@waiting/base64/-/base64-4.2.9.tgz#fa7e98d1a317355fed0cfb0ebdf94c361b9a3acf" + integrity sha512-yzt9ih63oePux/sQM8Df6DTv1IeXGByaHrFiJoPszk0LaJwIGJ3IKhKhT/O6YMo2RignlP2cfxoo1lGmKZPIgQ== + accepts@~1.3.5, accepts@~1.3.8: version "1.3.8" resolved "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" @@ -1936,6 +1941,11 @@ jake@^10.8.5: filelist "^1.0.1" minimatch "^3.0.4" +js-base64@^3.7.5: + version "3.7.5" + resolved "https://registry.npmmirror.com/js-base64/-/js-base64-3.7.5.tgz#21e24cf6b886f76d6f5f165bfcd69cc55b9e3fca" + integrity sha512-3MEt5DTINKqfScXKfJFrRbxkrnk2AxPWGBL/ycjz4dK8iqiSJ06UxD8jh8xuh6p10TX4t2+7FsBYVxxQbMg+qA== + js-sdsl@^4.1.4: version "4.3.0" resolved "https://registry.npmmirror.com/js-sdsl/-/js-sdsl-4.3.0.tgz#aeefe32a451f7af88425b11fdb5f58c90ae1d711"