From 60647fd5ca93d80178c18ab34a68114d73e0a2d1 Mon Sep 17 00:00:00 2001
From: Peng-YM <1048217874pengym@gmail.com>
Date: Sat, 12 Dec 2020 11:28:45 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E9=87=8FUI=E6=94=B9=E8=BF=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/public/index.html | 2 +-
web/src/assets/css/app.scss | 9 +-------
web/src/components/ProxyList.vue | 8 +++----
web/src/views/Cloud.vue | 37 ++++++++++++++++++++++----------
web/src/views/SubEditor.vue | 7 ++++--
web/src/views/Subscription.vue | 27 +++++++----------------
web/src/views/User.vue | 1 -
7 files changed, 44 insertions(+), 47 deletions(-)
diff --git a/web/public/index.html b/web/public/index.html
index d115030..09303c6 100644
--- a/web/public/index.html
+++ b/web/public/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/web/src/assets/css/app.scss b/web/src/assets/css/app.scss
index c3f927c..c5e32cc 100644
--- a/web/src/assets/css/app.scss
+++ b/web/src/assets/css/app.scss
@@ -334,7 +334,7 @@ html, body {
}
}
-.v-toolbar__title {
+.theme--light.v-toolbar__title {
font-weight: 300;
color: #555;
font-size: 18px;
@@ -360,7 +360,6 @@ html, body {
.v-icon {
font-size: 20px;
- color: #555 !important;
margin-top: -3px;
top: 0;
position: relative;
@@ -830,7 +829,6 @@ html, body {
}
.v-card__title {
- color: #3c4858;
font-size: 18px;
padding-top: 7px;
padding-bottom: 2px;
@@ -1138,11 +1136,6 @@ html, body {
padding: 24px 24px 0;
.v-icon {
- //position: absolute;
- //top: 15px;
- //right: 20px;
- color: #999;
- opacity: .5;
font-size: 16px;
&:hover {
diff --git a/web/src/components/ProxyList.vue b/web/src/components/ProxyList.vue
index c69a465..37af269 100644
--- a/web/src/components/ProxyList.vue
+++ b/web/src/components/ProxyList.vue
@@ -50,11 +50,9 @@
- {{ info.isp }}
-
- {{ info.region }}
-
- {{ info.ip }}
+ {{ info.isp }}
+ {{ info.region }}
+ {{ info.ip }}
diff --git a/web/src/views/Cloud.vue b/web/src/views/Cloud.vue
index 10107af..0b148d6 100644
--- a/web/src/views/Cloud.vue
+++ b/web/src/views/Cloud.vue
@@ -65,11 +65,15 @@
- {{ name }}
+
+ mdi-cloud
+
+
+ {{ sub.name }}
@@ -90,7 +94,7 @@
@click="newArtifact.platform = platform"
>
-
+
{{ platform }}
@@ -114,7 +118,7 @@
-
+
@@ -201,10 +205,11 @@ export default {
methods: {
getIcon(platform) {
const ICONS = {
- "Clash": "https://github.com/Dreamacro/clash/raw/master/docs/logo.png",
- "QX": "https://raw.githubusercontent.com/Orz-3/task/master/quantumultx.png",
- "Surge": "https://raw.githubusercontent.com/Orz-3/task/master/surge.png",
- "Loon": "https://raw.githubusercontent.com/Orz-3/task/master/loon.png"
+ "Clash": "https://raw.githubusercontent.com/58xinian/icon/master/clash_mini.png",
+ "QX": "https://raw.githubusercontent.com/Orz-3/mini/none/quanX.png",
+ "Surge": "https://raw.githubusercontent.com/Orz-3/mini/none/surge.png",
+ "Loon": "https://raw.githubusercontent.com/Orz-3/mini/none/loon.png",
+ "ShadowRocket": "https://raw.githubusercontent.com/Orz-3/mini/master/loon.png"
}
return ICONS[platform];
},
@@ -287,12 +292,22 @@ export default {
case "collection":
data = this.$store.state.collections;
}
- return Object.keys(data);
+ return Object.keys(data).map(k => data[k]);
+ },
+
+ getIconClass(url) {
+ return url.indexOf('#invert') !== -1 && !this.$store.state.settings.theme.darkMode ? 'invert' : ''
},
openGist() {
- window.open(`https://gist.github.com${ '/' + this.settings.githubUser || ''}`)
+ window.open(`https://gist.github.com${'/' + this.settings.githubUser || ''}`)
}
}
}
+
+
\ No newline at end of file
diff --git a/web/src/views/SubEditor.vue b/web/src/views/SubEditor.vue
index 85db72d..12f0d9e 100644
--- a/web/src/views/SubEditor.vue
+++ b/web/src/views/SubEditor.vue
@@ -36,7 +36,7 @@
mdi-cloud
-
+
{{ sub.name }}
@@ -404,6 +404,9 @@ export default {
}
},
methods: {
+ getIconClass(url) {
+ return url.indexOf('#invert') !== -1 && !this.$store.state.settings.theme.darkMode ? 'invert' : ''
+ },
save() {
if (this.isCollection) {
if (this.options.name && this.selected) {
@@ -570,7 +573,7 @@ function uuidv4() {
}
-