diff --git a/README.md b/README.md index 386c6e9..4eb49dd 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ yarn format # auto format yarn i18n # export i18n variables yarn rsync # sync backend app with server, see docs/dev.md yarn composer # run `composer install` on remote server -yarn gen:icon # generate svg icon component +yarn icon # generate svg icon component yarn remote-download:geoip2 # download GeoIP db on remote server yarn local-download:geoip2 # download GeoIP db locally +yarn options # export node side admin options.ts to php side options.json ``` diff --git a/app/configs/options.json b/app/configs/options.json index 5a4d599..cc89c96 100644 --- a/app/configs/options.json +++ b/app/configs/options.json @@ -30,7 +30,47 @@ "namespace": "social.github", "public": true, "title": "Github username", - "desc": "Your Github username", + "desc": "Your 'Github' username", + "type": "string", + "default": "" + }, + "social.gitlab": { + "namespace": "social.gitlab", + "public": true, + "title": "Gitlab username", + "desc": "Your 'Gitlab' username", + "type": "string", + "default": "" + }, + "social.twitter": { + "namespace": "social.twitter", + "public": true, + "title": "Twitter username", + "desc": "Your 'Twitter' username", + "type": "string", + "default": "" + }, + "social.weibo": { + "namespace": "social.weibo", + "public": true, + "title": "Weibo username", + "desc": "Your 'Weibo' username", + "type": "string", + "default": "" + }, + "social.facebook": { + "namespace": "social.facebook", + "public": true, + "title": "Facebook username", + "desc": "Your 'Facebook' username", + "type": "string", + "default": "" + }, + "social.stackoverflow": { + "namespace": "social.stackoverflow", + "public": true, + "title": "Stackoverflow username", + "desc": "Your 'Stackoverflow' username", "type": "string", "default": "" }, diff --git a/app/helpers/admin-page-helper.php b/app/helpers/admin-page-helper.php index 7e540e8..b53c6db 100644 --- a/app/helpers/admin-page-helper.php +++ b/app/helpers/admin-page-helper.php @@ -97,23 +97,8 @@ class AdminPageHelper extends ViteHelper public function get_admin_color_css() { - // {"name":"Default","url":false,"colors":["#1d2327","#2c3338","#2271b1","#72aee6"],"icon_colors":{"base":"#a7aaad","focus":"#72aee6","current":"#fff"}} global $_wp_admin_css_colors; $theme = (array) $_wp_admin_css_colors[get_user_option('admin_color')]; - // $scheme = [ - // 'dark-primary' => $theme['colors'][0], - // 'dark-secondary' => $theme['colors'][1], - // 'light-primary' => $theme['colors'][2], - // 'light-secondary' => $theme['colors'][3], - // 'icon-base' => $theme['icon_colors']['base'], - // 'icon-focus' => $theme['icon_colors']['focus'], - // 'icon-current' => $theme['icon_colors']['current'], - // ]; return $theme; - // $css = ''; - // foreach ($scheme as $key => $value) { - // $css .= "--{$key}:{$value};"; - // } - // return $css; } } diff --git a/package.json b/package.json index 404d8b5..0993632 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "local-download:geoip2": "mkdir -p app/cache && curl -o app/cache/GeoLite2-City.mmdb https://raw.githubusercontent.com/P3TERX/GeoLite.mmdb/download/GeoLite2-City.mmdb", "rsync": "nodemon -e '*' --watch ./app --ignore ./app/vendor scripts/rsync.mjs", "rsync:composer": "nodemon --watch './composer.json' --watch './composer.lock' scripts/rsync.mjs --composer", - "gen:icon": "node scripts/import-svg-icons.mjs && eslint \"src/components/icon/**/*.{ts,js,json,vue}\" --fix && prettier \"src/components/icon/**/*.{ts,js,json,vue}\" --write", + "icon": "yarn svgo -f ./src/assets/icons/ui/ && node scripts/import-svg-icons.mjs && eslint \"src/components/icon/**/*.{ts,js,json,vue}\" --fix && prettier \"src/components/icon/**/*.{ts,js,json,vue}\" --write", "mdc": "node scripts/mdc-upgrade.mjs", "options": "node scripts/options-export/copy-options.mjs && yarn tsc scripts/options-export/dump-options.ts && node scripts/options-export/dump-options.js" }, @@ -83,6 +83,7 @@ "@vue/eslint-config-typescript": "^7.0.0", "@vue/test-utils": "^2.0.0-rc.10", "autoprefixer": "^10.3.1", + "camelcase": "^6.2.0", "colors": "^1.4.0", "dotenv": "^10.0.0", "eslint": "^7.30.0", @@ -95,6 +96,7 @@ "postcss-import": "^14.0.2", "prettier": "^2.3.2", "resize-observer-polyfill": "^1.5.1", + "svgo": "^2.3.1", "ts-jest": "^27.0.3", "type-fest": "^1.2.2", "typescript": "^4.3.5", diff --git a/src/admin/options.ts b/src/admin/options.ts index 5569ce2..2566b6a 100644 --- a/src/admin/options.ts +++ b/src/admin/options.ts @@ -73,11 +73,98 @@ const options: Options = { title: 'Social', icon: 'fas fa-users', options: [ + // social.github { namespace: 'social.github', public: true, - title: 'Github username', - desc: 'Your Github username', + title: intl.formatMessage({ + id: 'options.social.github.title', + defaultMessage: 'Github username', + }), + desc: intl.formatMessage({ + id: 'options.social.github.desc', + defaultMessage: + 'Your \'Github\' username', + }), + type: 'string', + default: '', + }, + // social.gitlab + { + namespace: 'social.gitlab', + public: true, + title: intl.formatMessage({ + id: 'options.social.gitlab.title', + defaultMessage: 'Gitlab username', + }), + desc: intl.formatMessage({ + id: 'options.social.gitlab.desc', + defaultMessage: + 'Your \'Gitlab\' username', + }), + type: 'string', + default: '', + }, + // social.twitter + { + namespace: 'social.twitter', + public: true, + title: intl.formatMessage({ + id: 'options.social.twitter.title', + defaultMessage: 'Twitter username', + }), + desc: intl.formatMessage({ + id: 'options.social.twitter.desc', + defaultMessage: + 'Your \'Twitter\' username', + }), + type: 'string', + default: '', + }, + // social.weibo + { + namespace: 'social.weibo', + public: true, + title: intl.formatMessage({ + id: 'options.social.weibo.title', + defaultMessage: 'Weibo username', + }), + desc: intl.formatMessage({ + id: 'options.social.weibo.desc', + defaultMessage: 'Your \'Weibo\' username', + }), + type: 'string', + default: '', + }, + // social.facebook + { + namespace: 'social.facebook', + public: true, + title: intl.formatMessage({ + id: 'options.social.facebook.title', + defaultMessage: 'Facebook username', + }), + desc: intl.formatMessage({ + id: 'options.social.facebook.desc', + defaultMessage: + 'Your \'Facebook\' username', + }), + type: 'string', + default: '', + }, + // social.stackoverflow + { + namespace: 'social.stackoverflow', + public: true, + title: intl.formatMessage({ + id: 'options.social.stackoverflow.title', + defaultMessage: 'Stackoverflow username', + }), + desc: intl.formatMessage({ + id: 'options.social.stackoverflow.desc', + defaultMessage: + 'Your \'Stackoverflow\' username', + }), type: 'string', default: '', }, diff --git a/src/assets/icons/sakura/001-confetti.svg b/src/assets/icons/sakura/001-confetti.svg index 546cce8..5feecc1 100644 --- a/src/assets/icons/sakura/001-confetti.svg +++ b/src/assets/icons/sakura/001-confetti.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/002-drum.svg b/src/assets/icons/sakura/002-drum.svg index 06f0b3d..e72beac 100644 --- a/src/assets/icons/sakura/002-drum.svg +++ b/src/assets/icons/sakura/002-drum.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/003-sakura.svg b/src/assets/icons/sakura/003-sakura.svg index 174c2eb..8d2fcc5 100644 --- a/src/assets/icons/sakura/003-sakura.svg +++ b/src/assets/icons/sakura/003-sakura.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/004-sakura.svg b/src/assets/icons/sakura/004-sakura.svg index 3c5b6ea..b54207b 100644 --- a/src/assets/icons/sakura/004-sakura.svg +++ b/src/assets/icons/sakura/004-sakura.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/005-sakura.svg b/src/assets/icons/sakura/005-sakura.svg index 569abf4..df9d620 100644 --- a/src/assets/icons/sakura/005-sakura.svg +++ b/src/assets/icons/sakura/005-sakura.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/006-sakura.svg b/src/assets/icons/sakura/006-sakura.svg index 526df20..8ccacc9 100644 --- a/src/assets/icons/sakura/006-sakura.svg +++ b/src/assets/icons/sakura/006-sakura.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/007-lantern.svg b/src/assets/icons/sakura/007-lantern.svg index 54d29e1..4fd6e24 100644 --- a/src/assets/icons/sakura/007-lantern.svg +++ b/src/assets/icons/sakura/007-lantern.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/008-sakura.svg b/src/assets/icons/sakura/008-sakura.svg index 931e228..d381910 100644 --- a/src/assets/icons/sakura/008-sakura.svg +++ b/src/assets/icons/sakura/008-sakura.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/009-sakura.svg b/src/assets/icons/sakura/009-sakura.svg index 398e6e7..448aabb 100644 --- a/src/assets/icons/sakura/009-sakura.svg +++ b/src/assets/icons/sakura/009-sakura.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/010-sakura.svg b/src/assets/icons/sakura/010-sakura.svg index c53caf3..342812e 100644 --- a/src/assets/icons/sakura/010-sakura.svg +++ b/src/assets/icons/sakura/010-sakura.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/011-hanami.svg b/src/assets/icons/sakura/011-hanami.svg index b94c34f..18c3d61 100644 --- a/src/assets/icons/sakura/011-hanami.svg +++ b/src/assets/icons/sakura/011-hanami.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/012-hanami.svg b/src/assets/icons/sakura/012-hanami.svg index 32a7c08..3788730 100644 --- a/src/assets/icons/sakura/012-hanami.svg +++ b/src/assets/icons/sakura/012-hanami.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/013-park.svg b/src/assets/icons/sakura/013-park.svg index 7eacc69..cb58d17 100644 --- a/src/assets/icons/sakura/013-park.svg +++ b/src/assets/icons/sakura/013-park.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/014-bench.svg b/src/assets/icons/sakura/014-bench.svg index e1a6a01..752fcc6 100644 --- a/src/assets/icons/sakura/014-bench.svg +++ b/src/assets/icons/sakura/014-bench.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/015-park.svg b/src/assets/icons/sakura/015-park.svg index 9bdbcff..6c2cdef 100644 --- a/src/assets/icons/sakura/015-park.svg +++ b/src/assets/icons/sakura/015-park.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/016-hanami.svg b/src/assets/icons/sakura/016-hanami.svg index 91e3573..f551603 100644 --- a/src/assets/icons/sakura/016-hanami.svg +++ b/src/assets/icons/sakura/016-hanami.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/017-wagasa.svg b/src/assets/icons/sakura/017-wagasa.svg index 8a78fb1..54a3b7e 100644 --- a/src/assets/icons/sakura/017-wagasa.svg +++ b/src/assets/icons/sakura/017-wagasa.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/018-picnic.svg b/src/assets/icons/sakura/018-picnic.svg index c0bf1a5..a8682eb 100644 --- a/src/assets/icons/sakura/018-picnic.svg +++ b/src/assets/icons/sakura/018-picnic.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/019-hanami.svg b/src/assets/icons/sakura/019-hanami.svg index dde0244..aaff3fa 100644 --- a/src/assets/icons/sakura/019-hanami.svg +++ b/src/assets/icons/sakura/019-hanami.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/020-climb.svg b/src/assets/icons/sakura/020-climb.svg index 3d21313..b2c9948 100644 --- a/src/assets/icons/sakura/020-climb.svg +++ b/src/assets/icons/sakura/020-climb.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/021-sakura.svg b/src/assets/icons/sakura/021-sakura.svg index 7b8872a..6faeab2 100644 --- a/src/assets/icons/sakura/021-sakura.svg +++ b/src/assets/icons/sakura/021-sakura.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/022-dont shake.svg b/src/assets/icons/sakura/022-dont shake.svg index 289bccb..1d6988e 100644 --- a/src/assets/icons/sakura/022-dont shake.svg +++ b/src/assets/icons/sakura/022-dont shake.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/023-dont touch.svg b/src/assets/icons/sakura/023-dont touch.svg index cd75be6..15e21ce 100644 --- a/src/assets/icons/sakura/023-dont touch.svg +++ b/src/assets/icons/sakura/023-dont touch.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/024-kimono.svg b/src/assets/icons/sakura/024-kimono.svg index 9873682..0d0c819 100644 --- a/src/assets/icons/sakura/024-kimono.svg +++ b/src/assets/icons/sakura/024-kimono.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/025-fan.svg b/src/assets/icons/sakura/025-fan.svg index c9c9d83..a025a0f 100644 --- a/src/assets/icons/sakura/025-fan.svg +++ b/src/assets/icons/sakura/025-fan.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/026-cosplay.svg b/src/assets/icons/sakura/026-cosplay.svg index c2e89a8..c0099ea 100644 --- a/src/assets/icons/sakura/026-cosplay.svg +++ b/src/assets/icons/sakura/026-cosplay.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/027-geisha.svg b/src/assets/icons/sakura/027-geisha.svg index 123eb5a..4817e78 100644 --- a/src/assets/icons/sakura/027-geisha.svg +++ b/src/assets/icons/sakura/027-geisha.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/028-camera.svg b/src/assets/icons/sakura/028-camera.svg index 3fdea05..1509c9f 100644 --- a/src/assets/icons/sakura/028-camera.svg +++ b/src/assets/icons/sakura/028-camera.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/029-selfie stick.svg b/src/assets/icons/sakura/029-selfie stick.svg index c3b9d0c..6470f93 100644 --- a/src/assets/icons/sakura/029-selfie stick.svg +++ b/src/assets/icons/sakura/029-selfie stick.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/030-hanami.svg b/src/assets/icons/sakura/030-hanami.svg index ca000ed..a0837ae 100644 --- a/src/assets/icons/sakura/030-hanami.svg +++ b/src/assets/icons/sakura/030-hanami.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/031-fuji.svg b/src/assets/icons/sakura/031-fuji.svg index c7e9401..4f47e51 100644 --- a/src/assets/icons/sakura/031-fuji.svg +++ b/src/assets/icons/sakura/031-fuji.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/032-temple.svg b/src/assets/icons/sakura/032-temple.svg index c61214c..29ef83d 100644 --- a/src/assets/icons/sakura/032-temple.svg +++ b/src/assets/icons/sakura/032-temple.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/033-food stand.svg b/src/assets/icons/sakura/033-food stand.svg index fcfe234..f25312c 100644 --- a/src/assets/icons/sakura/033-food stand.svg +++ b/src/assets/icons/sakura/033-food stand.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/034-tea ceremony.svg b/src/assets/icons/sakura/034-tea ceremony.svg index 0429eaf..ddfb4e5 100644 --- a/src/assets/icons/sakura/034-tea ceremony.svg +++ b/src/assets/icons/sakura/034-tea ceremony.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/035-tea.svg b/src/assets/icons/sakura/035-tea.svg index 577f953..6da5a69 100644 --- a/src/assets/icons/sakura/035-tea.svg +++ b/src/assets/icons/sakura/035-tea.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/036-Sake.svg b/src/assets/icons/sakura/036-Sake.svg index 3d13a79..a948850 100644 --- a/src/assets/icons/sakura/036-Sake.svg +++ b/src/assets/icons/sakura/036-Sake.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/037-mochi.svg b/src/assets/icons/sakura/037-mochi.svg index 8148aaa..2f81bdd 100644 --- a/src/assets/icons/sakura/037-mochi.svg +++ b/src/assets/icons/sakura/037-mochi.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/038-yakisoba.svg b/src/assets/icons/sakura/038-yakisoba.svg index c5a4ef0..79d320c 100644 --- a/src/assets/icons/sakura/038-yakisoba.svg +++ b/src/assets/icons/sakura/038-yakisoba.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/039-sushi.svg b/src/assets/icons/sakura/039-sushi.svg index 9211b2a..c9ccd56 100644 --- a/src/assets/icons/sakura/039-sushi.svg +++ b/src/assets/icons/sakura/039-sushi.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/040-mochi.svg b/src/assets/icons/sakura/040-mochi.svg index bd4e8dc..30b6893 100644 --- a/src/assets/icons/sakura/040-mochi.svg +++ b/src/assets/icons/sakura/040-mochi.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/041-dango.svg b/src/assets/icons/sakura/041-dango.svg index 2b52229..59c4b07 100644 --- a/src/assets/icons/sakura/041-dango.svg +++ b/src/assets/icons/sakura/041-dango.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/042-bubble tea.svg b/src/assets/icons/sakura/042-bubble tea.svg index 206ae09..276f00d 100644 --- a/src/assets/icons/sakura/042-bubble tea.svg +++ b/src/assets/icons/sakura/042-bubble tea.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/043-baggage.svg b/src/assets/icons/sakura/043-baggage.svg index 49babb1..16a45c0 100644 --- a/src/assets/icons/sakura/043-baggage.svg +++ b/src/assets/icons/sakura/043-baggage.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/044-lights.svg b/src/assets/icons/sakura/044-lights.svg index f171b25..a8aaa32 100644 --- a/src/assets/icons/sakura/044-lights.svg +++ b/src/assets/icons/sakura/044-lights.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/045-lights.svg b/src/assets/icons/sakura/045-lights.svg index 0cac1a1..2724711 100644 --- a/src/assets/icons/sakura/045-lights.svg +++ b/src/assets/icons/sakura/045-lights.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/046-firework.svg b/src/assets/icons/sakura/046-firework.svg index aa73f60..f5a847d 100644 --- a/src/assets/icons/sakura/046-firework.svg +++ b/src/assets/icons/sakura/046-firework.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/047-origami.svg b/src/assets/icons/sakura/047-origami.svg index de4dbcf..6eb1c49 100644 --- a/src/assets/icons/sakura/047-origami.svg +++ b/src/assets/icons/sakura/047-origami.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/048-hanami.svg b/src/assets/icons/sakura/048-hanami.svg index 2342050..34b6035 100644 --- a/src/assets/icons/sakura/048-hanami.svg +++ b/src/assets/icons/sakura/048-hanami.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/049-hanami.svg b/src/assets/icons/sakura/049-hanami.svg index efbaa5b..ddb1769 100644 --- a/src/assets/icons/sakura/049-hanami.svg +++ b/src/assets/icons/sakura/049-hanami.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/sakura/050-sakura.svg b/src/assets/icons/sakura/050-sakura.svg index 23baa09..9030483 100644 --- a/src/assets/icons/sakura/050-sakura.svg +++ b/src/assets/icons/sakura/050-sakura.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/ui/duck.svg b/src/assets/icons/ui/duck.svg deleted file mode 100644 index d0ee9be..0000000 --- a/src/assets/icons/ui/duck.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/ic.lv0.svg b/src/assets/icons/ui/ic.lv0.svg new file mode 100644 index 0000000..c263308 --- /dev/null +++ b/src/assets/icons/ui/ic.lv0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/ic.lv1.svg b/src/assets/icons/ui/ic.lv1.svg new file mode 100644 index 0000000..3f552f9 --- /dev/null +++ b/src/assets/icons/ui/ic.lv1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/ic.lv2.svg b/src/assets/icons/ui/ic.lv2.svg new file mode 100644 index 0000000..60c7747 --- /dev/null +++ b/src/assets/icons/ui/ic.lv2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/ic.lv3.svg b/src/assets/icons/ui/ic.lv3.svg new file mode 100644 index 0000000..f8ee8d2 --- /dev/null +++ b/src/assets/icons/ui/ic.lv3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/ic.lv4.svg b/src/assets/icons/ui/ic.lv4.svg new file mode 100644 index 0000000..c5d1bc4 --- /dev/null +++ b/src/assets/icons/ui/ic.lv4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/ic.lv5.svg b/src/assets/icons/ui/ic.lv5.svg new file mode 100644 index 0000000..7f0ce41 --- /dev/null +++ b/src/assets/icons/ui/ic.lv5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/ic.lv6.svg b/src/assets/icons/ui/ic.lv6.svg new file mode 100644 index 0000000..fcf326a --- /dev/null +++ b/src/assets/icons/ui/ic.lv6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/ic.sakura.svg b/src/assets/icons/ui/ic.sakura.svg new file mode 100644 index 0000000..224b0ed --- /dev/null +++ b/src/assets/icons/ui/ic.sakura.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/joker.svg b/src/assets/icons/ui/joker.svg deleted file mode 100644 index 1681953..0000000 --- a/src/assets/icons/ui/joker.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/lv0.svg b/src/assets/icons/ui/lv0.svg deleted file mode 100644 index b0febb5..0000000 --- a/src/assets/icons/ui/lv0.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/lv1.svg b/src/assets/icons/ui/lv1.svg deleted file mode 100644 index 93b4a5d..0000000 --- a/src/assets/icons/ui/lv1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/lv2.svg b/src/assets/icons/ui/lv2.svg deleted file mode 100644 index 3f54bcc..0000000 --- a/src/assets/icons/ui/lv2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/lv3.svg b/src/assets/icons/ui/lv3.svg deleted file mode 100644 index 3c156a4..0000000 --- a/src/assets/icons/ui/lv3.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/lv4.svg b/src/assets/icons/ui/lv4.svg deleted file mode 100644 index cbf8d2d..0000000 --- a/src/assets/icons/ui/lv4.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/lv5.svg b/src/assets/icons/ui/lv5.svg deleted file mode 100644 index 2f9537a..0000000 --- a/src/assets/icons/ui/lv5.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/lv6.svg b/src/assets/icons/ui/lv6.svg deleted file mode 100644 index ea8bec8..0000000 --- a/src/assets/icons/ui/lv6.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/sakura.svg b/src/assets/icons/ui/sakura.svg deleted file mode 100644 index e128cc4..0000000 --- a/src/assets/icons/ui/sakura.svg +++ /dev/null @@ -1,25 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/social.bilibili.svg b/src/assets/icons/ui/social.bilibili.svg new file mode 100644 index 0000000..c47ac09 --- /dev/null +++ b/src/assets/icons/ui/social.bilibili.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.douban.svg b/src/assets/icons/ui/social.douban.svg new file mode 100644 index 0000000..4961cb9 --- /dev/null +++ b/src/assets/icons/ui/social.douban.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.facebook.svg b/src/assets/icons/ui/social.facebook.svg new file mode 100644 index 0000000..b0a911f --- /dev/null +++ b/src/assets/icons/ui/social.facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.github.svg b/src/assets/icons/ui/social.github.svg new file mode 100644 index 0000000..0a98d3d --- /dev/null +++ b/src/assets/icons/ui/social.github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.gitlab.svg b/src/assets/icons/ui/social.gitlab.svg new file mode 100644 index 0000000..b2fd3a5 --- /dev/null +++ b/src/assets/icons/ui/social.gitlab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.instagram.svg b/src/assets/icons/ui/social.instagram.svg new file mode 100644 index 0000000..d9b39da --- /dev/null +++ b/src/assets/icons/ui/social.instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.mastodon.svg b/src/assets/icons/ui/social.mastodon.svg new file mode 100644 index 0000000..3c8038e --- /dev/null +++ b/src/assets/icons/ui/social.mastodon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.pixiv.svg b/src/assets/icons/ui/social.pixiv.svg new file mode 100644 index 0000000..b38aa95 --- /dev/null +++ b/src/assets/icons/ui/social.pixiv.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.qq.svg b/src/assets/icons/ui/social.qq.svg new file mode 100644 index 0000000..633aeb4 --- /dev/null +++ b/src/assets/icons/ui/social.qq.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.qzone.svg b/src/assets/icons/ui/social.qzone.svg new file mode 100644 index 0000000..4e49dd7 --- /dev/null +++ b/src/assets/icons/ui/social.qzone.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.stackoverflow.svg b/src/assets/icons/ui/social.stackoverflow.svg new file mode 100644 index 0000000..7261774 --- /dev/null +++ b/src/assets/icons/ui/social.stackoverflow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.twitch.svg b/src/assets/icons/ui/social.twitch.svg new file mode 100644 index 0000000..c8de250 --- /dev/null +++ b/src/assets/icons/ui/social.twitch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.twitter.svg b/src/assets/icons/ui/social.twitter.svg new file mode 100644 index 0000000..d30ce58 --- /dev/null +++ b/src/assets/icons/ui/social.twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.weibo.svg b/src/assets/icons/ui/social.weibo.svg new file mode 100644 index 0000000..4fa0e67 --- /dev/null +++ b/src/assets/icons/ui/social.weibo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.weichat.svg b/src/assets/icons/ui/social.weichat.svg new file mode 100644 index 0000000..cc76103 --- /dev/null +++ b/src/assets/icons/ui/social.weichat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/social.zhihu.svg b/src/assets/icons/ui/social.zhihu.svg new file mode 100644 index 0000000..7382451 --- /dev/null +++ b/src/assets/icons/ui/social.zhihu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/ui/sofa.svg b/src/assets/icons/ui/sofa.svg deleted file mode 100644 index e753e03..0000000 --- a/src/assets/icons/ui/sofa.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/icons/ui/spring.svg b/src/assets/icons/ui/spring.svg deleted file mode 100644 index 8d59843..0000000 --- a/src/assets/icons/ui/spring.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/logo.png b/src/assets/logo.png deleted file mode 100644 index f3d2503..0000000 Binary files a/src/assets/logo.png and /dev/null differ diff --git a/src/components/icon/UiIcon.vue b/src/components/icon/UiIcon.vue index b6cefa2..9fe2039 100644 --- a/src/components/icon/UiIcon.vue +++ b/src/components/icon/UiIcon.vue @@ -1,48 +1,66 @@ + + diff --git a/src/views/Home.vue b/src/views/Home.vue index 985e932..b84c3e7 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,7 +1,9 @@