From c4a28eb509164e52d795e5ffea25bc5027127f9e Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Wed, 29 May 2024 21:37:23 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E6=B3=A8=E9=87=8A?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E5=AE=8C=E5=96=84=E7=B1=BB=E5=9E=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.production | 4 +-
components.d.ts | 1 -
deploy/entrypoint.sh | 2 +-
deploy/nginx/nginx.conf | 4 +-
opendesign/button/src/button-types.ts | 1 -
opendesign/dialog/ODialog.vue | 5 +-
opendesign/search/OSearch.vue | 1 -
opendesign/select/OOption.vue | 2 -
opendesign/select/OSelect.vue | 1 -
opendesign/select/index.ts | 5 +-
opendesign/select/src/select.tsx | 16 --
package.json | 10 +-
pnpm-lock.yaml | 115 +++++-------
src/api/api-quick-issue.ts | 10 --
src/components/AppFooter.vue | 127 +------------
src/components/AppHeader.vue | 8 +-
src/components/AppIssue.vue | 68 ++++---
src/components/AppPull.vue | 30 ++--
src/components/AppSlideVerify.vue | 236 -------------------------
src/config/index.ts | 108 +++++++++++
src/shared/axios/index.ts | 5 -
src/shared/issue-type.ts | 10 ++
src/shared/styles/markdown.scss | 8 +-
src/views/TheQuickIssue.vue | 37 ++--
src/views/pull-request/PullRequest.vue | 38 ++--
src/views/submit-issue/SubmitIssue.vue | 45 +++--
src/vite-env.d.ts | 2 -
27 files changed, 289 insertions(+), 610 deletions(-)
delete mode 100644 src/components/AppSlideVerify.vue
create mode 100644 src/config/index.ts
create mode 100644 src/shared/issue-type.ts
diff --git a/.env.production b/.env.production
index 79e379e..1bbbb8a 100644
--- a/.env.production
+++ b/.env.production
@@ -1,3 +1,3 @@
-VITE_COOKIE_DOMAIN = .openeuler.org
+VITE_COOKIE_DOMAIN = .test.osinfra.cn
-VITE_LOGIN_ORIGIN = https://id.openeuler.org
+VITE_LOGIN_ORIGIN = https://openeuler-usercenter.test.osinfra.cn
diff --git a/components.d.ts b/components.d.ts
index 0c5defc..d8b8a47 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -13,7 +13,6 @@ declare module 'vue' {
AppHeader: typeof import('./src/components/AppHeader.vue')['default']
AppIssue: typeof import('./src/components/AppIssue.vue')['default']
AppPull: typeof import('./src/components/AppPull.vue')['default']
- AppSlideVerify: typeof import('./src/components/AppSlideVerify.vue')['default']
DocAnchor: typeof import('./src/components/DocAnchor.vue')['default']
ElCard: typeof import('element-plus/es')['ElCard']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh
index 9679c15..d72cb30 100644
--- a/deploy/entrypoint.sh
+++ b/deploy/entrypoint.sh
@@ -1,4 +1,4 @@
#!/bin/bash
bash /etc/nginx/monitor.sh $DET_URL $DST_PATH &
-/usr/share/nginx/sbin/nginx -g 'daemon off;
\ No newline at end of file
+/usr/share/nginx/sbin/nginx -g 'daemon off;'
\ No newline at end of file
diff --git a/deploy/nginx/nginx.conf b/deploy/nginx/nginx.conf
index 852f9bf..17b1eb0 100644
--- a/deploy/nginx/nginx.conf
+++ b/deploy/nginx/nginx.conf
@@ -104,7 +104,7 @@ http {
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
- add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval'; object-src 'none'; frame-src 'none'";
+ add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'none'; frame-src 'none'";
add_header Cache-Control "public,max-age=1209600";
}
@@ -125,7 +125,7 @@ http {
location /api-omapi/ {
proxy_set_header X-Forwarded-For $http_x_real_ip;
- proxy_pass https://omapi.osinfra.cn/;
+ proxy_pass https://omapi.test.osinfra.cn/;
}
diff --git a/opendesign/button/src/button-types.ts b/opendesign/button/src/button-types.ts
index 4deb21d..de42891 100644
--- a/opendesign/button/src/button-types.ts
+++ b/opendesign/button/src/button-types.ts
@@ -3,7 +3,6 @@ import { SizeType } from '../../_utils/common';
type ButtonType = 'outline' | 'primary' | 'secondary' | 'text';
// TODO:status颜色规范待补充
-// type ButtonStatus = 'normal' | 'success' | 'warning' | 'danger';
type ButtonStatus = 'normal';
type ButtonNativeType = 'button' | 'submit' | 'reset';
diff --git a/opendesign/dialog/ODialog.vue b/opendesign/dialog/ODialog.vue
index dddf034..9cdfff2 100644
--- a/opendesign/dialog/ODialog.vue
+++ b/opendesign/dialog/ODialog.vue
@@ -30,8 +30,5 @@ const modalClassNames = computed(() => {
diff --git a/opendesign/search/OSearch.vue b/opendesign/search/OSearch.vue
index 731ba44..cb07e8a 100644
--- a/opendesign/search/OSearch.vue
+++ b/opendesign/search/OSearch.vue
@@ -44,7 +44,6 @@ const attrs = useAttrs();
border-radius: 0;
padding: 1px 8px;
background-color: var(--o-search-color-bg);
- // box-shadow: var(--o-search-shadow);
.el-input__prefix-inner {
font-size: var(--o-font-size-h5);
diff --git a/opendesign/select/OOption.vue b/opendesign/select/OOption.vue
index 96d713b..4682413 100644
--- a/opendesign/select/OOption.vue
+++ b/opendesign/select/OOption.vue
@@ -1,6 +1,4 @@
diff --git a/opendesign/select/OSelect.vue b/opendesign/select/OSelect.vue
index 1a313ff..e6de9a1 100644
--- a/opendesign/select/OSelect.vue
+++ b/opendesign/select/OSelect.vue
@@ -164,7 +164,6 @@ onUnmounted(() => {
.o-search {
width: 100%;
height: 34px;
- // margin: var(--o-spacing-h10) var(--o-spacing-h5);
.el-input__wrapper {
box-shadow: 0 0 0 1px var(--o-color-border1) inset;
&:hover {
diff --git a/opendesign/select/index.ts b/opendesign/select/index.ts
index 55fc044..40472c0 100644
--- a/opendesign/select/index.ts
+++ b/opendesign/select/index.ts
@@ -1,11 +1,8 @@
import type { App } from 'vue';
import Select from './OSelect.vue';
-// import Option from './OOption.vue';
Select.install = function (app: App) {
app.component('OSelect', Select);
};
-// Option.install = function (app: App) {
-// app.component('OOption', Option);
-// };
+
export { Select };
diff --git a/opendesign/select/src/select.tsx b/opendesign/select/src/select.tsx
index 5cb2ef6..e69de29 100644
--- a/opendesign/select/src/select.tsx
+++ b/opendesign/select/src/select.tsx
@@ -1,16 +0,0 @@
-// import { defineComponent } from 'vue';
-// import { selectProps } from './select-types';
-
-// export default defineComponent({
-// name: 'OSelect',
-// props: selectProps,
-// setup() {
-// return () => {
-// return (
-//
-//
-//
-// );
-// };
-// },
-// });
diff --git a/package.json b/package.json
index 64ef0f3..5646101 100644
--- a/package.json
+++ b/package.json
@@ -19,17 +19,15 @@
"dependencies": {
"@kangc/v-md-editor": "^2.3.18",
"axios": "^1.6.8",
- "crypto-js": "^4.2.0",
- "element-plus": "^2.3.5",
+ "element-plus": "^2.3.4",
"js-base64": "^3.7.5",
"lodash-es": "^4.17.21",
"opendesign": "link:opendesign",
- "pinia": "^2.1.3",
+ "pinia": "^2.1.6",
"prismjs": "^1.29.0",
"vue": "^3.3.4",
- "vue-i18n": "^9.2.2",
- "vue-router": "^4.2.1",
- "vue3-slide-verify": "^1.1.4"
+ "vue-i18n": "^9.10.1",
+ "vue-router": "^4.3.0"
},
"devDependencies": {
"@types/lodash-es": "^4.17.7",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3ff8384..09ecdf1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -14,12 +14,9 @@ dependencies:
axios:
specifier: ^1.6.8
version: 1.6.8
- crypto-js:
- specifier: ^4.2.0
- version: 4.2.0
element-plus:
- specifier: ^2.3.5
- version: 2.3.5(vue@3.3.4)
+ specifier: ^2.3.4
+ version: 2.3.4(vue@3.3.4)
js-base64:
specifier: ^3.7.5
version: 3.7.5
@@ -30,8 +27,8 @@ dependencies:
specifier: link:opendesign
version: link:opendesign
pinia:
- specifier: ^2.1.3
- version: 2.1.3(typescript@4.9.5)(vue@3.3.4)
+ specifier: ^2.1.6
+ version: 2.1.6(typescript@4.9.5)(vue@3.3.4)
prismjs:
specifier: ^1.29.0
version: 1.29.0
@@ -39,14 +36,11 @@ dependencies:
specifier: ^3.3.4
version: 3.3.4
vue-i18n:
- specifier: ^9.2.2
- version: 9.2.2(vue@3.3.4)
+ specifier: ^9.10.1
+ version: 9.10.1(vue@3.3.4)
vue-router:
- specifier: ^4.2.1
- version: 4.2.1(vue@3.3.4)
- vue3-slide-verify:
- specifier: ^1.1.4
- version: 1.1.4
+ specifier: ^4.3.0
+ version: 4.3.0(vue@3.3.4)
devDependencies:
'@types/lodash-es':
@@ -444,8 +438,8 @@ packages:
engines: {node: '>=10'}
dev: false
- /@element-plus/icons-vue@2.1.0(vue@3.3.4):
- resolution: {integrity: sha512-PSBn3elNoanENc1vnCfh+3WA9fimRC7n+fWkf3rE5jvv+aBohNHABC/KAR5KWPecxWxDTVT1ERpRbOMRcOV/vA==}
+ /@element-plus/icons-vue@2.3.1(vue@3.3.4):
+ resolution: {integrity: sha512-XxVUZv48RZAd87ucGS48jPf6pKu0yV5UCg9f4FFwtrYxXOwWuVJo6wOvSLKEoMQKjv8GsX/mhP6UsC1lRwbUWg==}
peerDependencies:
vue: ^3.2.0
dependencies:
@@ -554,42 +548,25 @@ packages:
- supports-color
dev: true
- /@intlify/core-base@9.2.2:
- resolution: {integrity: sha512-JjUpQtNfn+joMbrXvpR4hTF8iJQ2sEFzzK3KIESOx+f+uwIjgw20igOyaIdhfsVVBCds8ZM64MoeNSx+PHQMkA==}
- engines: {node: '>= 14'}
+ /@intlify/core-base@9.10.1:
+ resolution: {integrity: sha512-0+Wtjj04GIyglh5KKiNjRwgjpHrhqqGZhaKY/QVjjogWKZq5WHROrTi84pNVsRN18QynyPmjtsVUWqFKPQ45xQ==}
+ engines: {node: '>= 16'}
dependencies:
- '@intlify/devtools-if': 9.2.2
- '@intlify/message-compiler': 9.2.2
- '@intlify/shared': 9.2.2
- '@intlify/vue-devtools': 9.2.2
+ '@intlify/message-compiler': 9.10.1
+ '@intlify/shared': 9.10.1
dev: false
- /@intlify/devtools-if@9.2.2:
- resolution: {integrity: sha512-4ttr/FNO29w+kBbU7HZ/U0Lzuh2cRDhP8UlWOtV9ERcjHzuyXVZmjyleESK6eVP60tGC9QtQW9yZE+JeRhDHkg==}
- engines: {node: '>= 14'}
+ /@intlify/message-compiler@9.10.1:
+ resolution: {integrity: sha512-b68UTmRhgZfswJZI7VAgW6BXZK5JOpoi5swMLGr4j6ss2XbFY13kiw+Hu+xYAfulMPSapcHzdWHnq21VGnMCnA==}
+ engines: {node: '>= 16'}
dependencies:
- '@intlify/shared': 9.2.2
- dev: false
-
- /@intlify/message-compiler@9.2.2:
- resolution: {integrity: sha512-IUrQW7byAKN2fMBe8z6sK6riG1pue95e5jfokn8hA5Q3Bqy4MBJ5lJAofUsawQJYHeoPJ7svMDyBaVJ4d0GTtA==}
- engines: {node: '>= 14'}
- dependencies:
- '@intlify/shared': 9.2.2
- source-map: 0.6.1
- dev: false
-
- /@intlify/shared@9.2.2:
- resolution: {integrity: sha512-wRwTpsslgZS5HNyM7uDQYZtxnbI12aGiBZURX3BTR9RFIKKRWpllTsgzHWvj3HKm3Y2Sh5LPC1r0PDCKEhVn9Q==}
- engines: {node: '>= 14'}
+ '@intlify/shared': 9.10.1
+ source-map-js: 1.0.2
dev: false
- /@intlify/vue-devtools@9.2.2:
- resolution: {integrity: sha512-+dUyqyCHWHb/UcvY1MlIpO87munedm3Gn6E9WWYdWrMuYLcoIoOEVDWSS8xSwtlPU+kA+MEQTP6Q1iI/ocusJg==}
- engines: {node: '>= 14'}
- dependencies:
- '@intlify/core-base': 9.2.2
- '@intlify/shared': 9.2.2
+ /@intlify/shared@9.10.1:
+ resolution: {integrity: sha512-liyH3UMoglHBUn70iCYcy9CQlInx/lp50W2aeSxqqrvmG+LDj/Jj7tBJhBoQL4fECkldGhbmW0g2ommHfL6Wmw==}
+ engines: {node: '>= 16'}
dev: false
/@jridgewell/gen-mapping@0.3.3:
@@ -1072,6 +1049,10 @@ packages:
resolution: {integrity: sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==}
dev: false
+ /@vue/devtools-api@6.6.1:
+ resolution: {integrity: sha512-LgPscpE3Vs0x96PzSSB4IGVSZXZBZHpfxs+ZA1d+VEPwHdOXowy/Y2CsvCAIFrf+ssVU1pD1jidj505EpUnfbA==}
+ dev: false
+
/@vue/eslint-config-prettier@7.1.0(eslint@8.41.0)(prettier@2.8.8):
resolution: {integrity: sha512-Pv/lVr0bAzSIHLd9iz0KnvAr4GKyCEl+h52bc4e5yWuDVtLgFwycF7nrbWTAQAS+FU6q1geVd07lc6EWfJiWKQ==}
peerDependencies:
@@ -1651,10 +1632,6 @@ packages:
which: 2.0.2
dev: true
- /crypto-js@4.2.0:
- resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==}
- dev: false
-
/cssesc@3.0.0:
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'}
@@ -2082,13 +2059,13 @@ packages:
resolution: {integrity: sha512-gWYvJSkohOiBE6ecVYXkrDgNaUjo47QEKK0kQzmWyhkH+yoYiG44bwuicTGNSIQRG3WDMsWVZJLRnJnLNkbWvA==}
dev: true
- /element-plus@2.3.5(vue@3.3.4):
- resolution: {integrity: sha512-g27DHm2C5/tPwte9H6Juu+JOdzT9z1ALHTIvia6MwnBdCrI4kd77o6KcYdodU15/tYiPBoCEmobhl/7GUDb+1Q==}
+ /element-plus@2.3.4(vue@3.3.4):
+ resolution: {integrity: sha512-SQr0J9z7N4z48WYk/l9NE2tizl8Q7j2OhqlpTc42k4pGncry3+rVX6dsmcsglFynn6vt3NzYxWJqmLFyDKQq+g==}
peerDependencies:
vue: ^3.2.0
dependencies:
'@ctrl/tinycolor': 3.6.0
- '@element-plus/icons-vue': 2.1.0(vue@3.3.4)
+ '@element-plus/icons-vue': 2.3.1(vue@3.3.4)
'@floating-ui/dom': 1.2.8
'@popperjs/core': /@sxzz/popperjs-es@2.11.7
'@types/lodash': 4.14.194
@@ -4035,8 +4012,8 @@ packages:
engines: {node: '>=6'}
dev: false
- /pinia@2.1.3(typescript@4.9.5)(vue@3.3.4):
- resolution: {integrity: sha512-XNA/z/ye4P5rU1pieVmh0g/hSuDO98/a5UC8oSP0DNdvt6YtetJNHTrXwpwsQuflkGT34qKxAEcp7lSxXNjf/A==}
+ /pinia@2.1.6(typescript@4.9.5)(vue@3.3.4):
+ resolution: {integrity: sha512-bIU6QuE5qZviMmct5XwCesXelb5VavdOWKWaB17ggk++NUwQWWbP5YnsONTk3b752QkW9sACiR81rorpeOMSvQ==}
peerDependencies:
'@vue/composition-api': ^1.4.0
typescript: '>=4.4.4'
@@ -4406,11 +4383,6 @@ packages:
engines: {node: '>=0.10.0'}
dev: false
- /source-map@0.6.1:
- resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
- engines: {node: '>=0.10.0'}
- dev: false
-
/sourcemap-codec@1.4.8:
resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}
deprecated: Please use @jridgewell/sourcemap-codec instead
@@ -4941,25 +4913,24 @@ packages:
- supports-color
dev: true
- /vue-i18n@9.2.2(vue@3.3.4):
- resolution: {integrity: sha512-yswpwtj89rTBhegUAv9Mu37LNznyu3NpyLQmozF3i1hYOhwpG8RjcjIFIIfnu+2MDZJGSZPXaKWvnQA71Yv9TQ==}
- engines: {node: '>= 14'}
+ /vue-i18n@9.10.1(vue@3.3.4):
+ resolution: {integrity: sha512-37HVJQZ/pZaRXGzFmmMomM1u1k7kndv3xCBPYHKEVfv5W3UVK67U/TpBug71ILYLNmjHLHdvTUPRF81pFT5fFg==}
+ engines: {node: '>= 16'}
peerDependencies:
vue: ^3.0.0
dependencies:
- '@intlify/core-base': 9.2.2
- '@intlify/shared': 9.2.2
- '@intlify/vue-devtools': 9.2.2
+ '@intlify/core-base': 9.10.1
+ '@intlify/shared': 9.10.1
'@vue/devtools-api': 6.5.0
vue: 3.3.4
dev: false
- /vue-router@4.2.1(vue@3.3.4):
- resolution: {integrity: sha512-nW28EeifEp8Abc5AfmAShy5ZKGsGzjcnZ3L1yc2DYUo+MqbBClrRP9yda3dIekM4I50/KnEwo1wkBLf7kHH5Cw==}
+ /vue-router@4.3.0(vue@3.3.4):
+ resolution: {integrity: sha512-dqUcs8tUeG+ssgWhcPbjHvazML16Oga5w34uCUmsk7i0BcnskoLGwjpa15fqMr2Fa5JgVBrdL2MEgqz6XZ/6IQ==}
peerDependencies:
vue: ^3.2.0
dependencies:
- '@vue/devtools-api': 6.5.0
+ '@vue/devtools-api': 6.6.1
vue: 3.3.4
dev: false
@@ -4974,12 +4945,6 @@ packages:
typescript: 4.9.5
dev: true
- /vue3-slide-verify@1.1.4:
- resolution: {integrity: sha512-er2d9TSPsF5CcmoxBfP6eSkc4IHROwXu6Ytghkwf52apXpXy2ZtW3tOgHnmFWb3GHESKxZ9bsFXqSX+fJ6hjrg==}
- dependencies:
- vue: 3.3.4
- dev: false
-
/vue@3.3.4:
resolution: {integrity: sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==}
dependencies:
diff --git a/src/api/api-quick-issue.ts b/src/api/api-quick-issue.ts
index cb08973..801156f 100644
--- a/src/api/api-quick-issue.ts
+++ b/src/api/api-quick-issue.ts
@@ -54,16 +54,6 @@ export function uploadIssueImage(params: object) {
.then((res: AxiosResponse) => res.data);
}
-/**
- * issue 提交邮箱验证
- * @name getRepoIssue
- * @return {String}
- */
-export function verifySubmitterEmail(params: object) {
- const url = '/api-issues/verify/';
-
- return request.post(url, params).then((res: AxiosResponse) => res.data);
-}
/**
* sig仓库查找
* @name getRepoIssue
diff --git a/src/components/AppFooter.vue b/src/components/AppFooter.vue
index 69d45e4..184061e 100644
--- a/src/components/AppFooter.vue
+++ b/src/components/AppFooter.vue
@@ -2,6 +2,8 @@
import { computed } from 'vue';
import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
+
+import { linksData, linksData2 } from '@/config';
import { useLangStore } from '@/stores';
import AppContent from '@/components/AppContent.vue';
@@ -12,21 +14,6 @@ import LogoAtom from '@/assets/footer/atom-logo.svg';
import FooterBg from '@/assets/footer/footer-bg.png';
import FooterBgMo from '@/assets/footer/footer-bg-mo.png';
-// 中文友情链接
-import LogoBilibili from '@/assets/footer/bilibili.png';
-import LogoInfoq from '@/assets/footer/infoq.png';
-import LogoJuejin from '@/assets/footer/juejin.png';
-import LogoOschina from '@/assets/footer/oschina.png';
-import LogoCsdn from '@/assets/footer/csdn.png';
-import Logo51cto from '@/assets/footer/51cto.png';
-
-// 英文、俄文友情链接
-import LogoRedditSquare from '@/assets/footer/reddit-square@2x.png';
-import LogoBilibili2 from '@/assets/footer/bilibili@2x.png';
-import LogoLinkedin from '@/assets/footer/linkedin@2x.png';
-import LogoYoutube from '@/assets/footer/youtube@2x.png';
-import LogoTwitter from '@/assets/footer/twitter@2x.png';
-
// 公众号、小助手
import CodeTitleXzs from '@/assets/footer/img-xzs.png';
import CodeTitleGzh from '@/assets/footer/img-gzh.png';
@@ -38,99 +25,6 @@ const router = useRouter();
const lang = computed(() => {
return useLangStore().lang;
});
-// 友情链接
-const linksData: any = {
- zh: [
- {
- path: 'https://my.oschina.net/openeuler',
- logo: LogoOschina,
- id: 'oschina',
- },
- {
- path: 'https://blog.csdn.net/openEuler_?spm=1000.2115.3001.5343',
- logo: LogoCsdn,
- id: 'csdn',
- },
- {
- path: 'https://juejin.cn/user/3183782863845454',
- logo: LogoJuejin,
- id: 'juejin',
- },
- {
- path: 'https://space.bilibili.com/527064077/channel/series',
- logo: LogoBilibili,
- id: 'bilibili',
- },
- {
- path: 'https://www.infoq.cn/profile/6E6CE3E2316F28/publish',
- logo: LogoInfoq,
- id: 'infoq',
- },
- {
- path: 'https://blog.51cto.com/u_14948868',
- logo: Logo51cto,
- id: '51cto',
- },
- ],
- en: [
- {
- path: 'https://www.reddit.com/r/openEuler/',
- logo: LogoRedditSquare,
- id: 'reddit-square',
- },
- {
- path: 'https://www.linkedin.com/company/openeuler',
- logo: LogoLinkedin,
- id: 'linkedin',
- },
- {
- path: 'https://twitter.com/openEuler',
- logo: LogoTwitter,
- id: 'twitter',
- },
- {
- path: 'https://space.bilibili.com/527064077/channel/series',
- logo: LogoBilibili2,
- id: 'bilibili',
- },
- {
- path: 'https://www.youtube.com/channel/UCPzSqXqCgmJmdIicbY7GAeA',
- logo: LogoYoutube,
- id: 'youtube',
- },
- ],
-};
-// 隐私链接
-const linksData2: any = {
- zh: [
- {
- NAME: '品牌',
- URL: 'https://www.openeuler.org/zh/other/brand/',
- },
- {
- NAME: '隐私政策',
- URL: 'https://www.openeuler.org/zh/other/privacy/',
- },
- {
- NAME: '法律声明',
- URL: 'https://www.openeuler.org/zh/other/legal/',
- },
- ],
- en: [
- {
- NAME: 'Trademark',
- URL: 'https://www.openeuler.org/en/other/brand/',
- },
- {
- NAME: 'Privacy Policy',
- URL: 'https://www.openeuler.org/en/other/privacy/',
- },
- {
- NAME: 'Legal Notice',
- URL: 'https://www.openeuler.org/en/other/legal/',
- },
- ],
-};
// 公众号、小助手
const footerCodeList = [
@@ -146,14 +40,6 @@ const footerCodeList = [
},
];
-const handleNavClick = (path: string) => {
- if (path.startsWith('https:')) {
- window.open(path, '_blank');
- } else {
- router.push(`/${'zh'}` + path);
- }
-};
-
// 背景
const footBg = {
pc: `url(${FooterBg})`,
@@ -193,9 +79,8 @@ const footBg = {
{{ link.NAME }}
@@ -207,18 +92,17 @@ const footBg = {