p:not(:last-of-type) {
- margin-bottom: 12px;
- color: grey;
- }
-
- &>p {
- display: flex;
-
- strong {
- flex: 0 0 25px;
- }
- }
-
-
- }
-}
-
-
-.line_text {
- width: 100%;
- // color: #a2a9b6;
- border: 0;
- font-size: 14px;
- padding: 1em 0;
- position: relative;
- -webkit-mask-image: linear-gradient(to right,
- transparent,
- black,
- transparent);
- mask-image: linear-gradient(to right, transparent, black, transparent);
-
- &::before {
- content: attr(data-content);
- position: absolute;
- padding: 0 1ch;
- line-height: 1px;
- border: solid #d0d0d5;
- border-width: 0 99vw;
- width: fit-content;
- /* for 不支持fit-content浏览器 */
- white-space: nowrap;
- left: 50%;
- transform: translateX(-50%);
- }
}
\ No newline at end of file
diff --git a/src/routers/layout/logo.tsx b/src/routers/layout/logo.tsx
deleted file mode 100644
index 82ca977..0000000
--- a/src/routers/layout/logo.tsx
+++ /dev/null
@@ -1,185 +0,0 @@
-import { Button, Link, Modal, styled } from "@mui/material";
-import { FC, useState } from "react";
-import styles from "./layout.module.less";
-
-const Explain: FC<{ open: boolean; handlerClick: () => void }> = (props) => (
- <>
-
-
-
-
- -
-
- Q:
- 为什么界面这么丑?
-
-
- A:
- web端没有UI捏🙇♂️🙇♂️🙇♂️果咩。
-
-
- -
-
- Q:
- 如何查找我想看的视频类型?
-
-
- A:
-
- 😩目前只能通过点击下方tag栏进行查询,其中各分区、原创和转载、
- 最新发布和最多播放互斥外其他tag皆满足异或查询。
-
- 🤔tag排序不是固定的,可以使用鼠标或者触摸按住tag半秒后进行移动。
-
- 🤗可以自定义任何你想要的tag栏顺序,下一次访问也有效。
-
-
-
- -
-
- Q:
- 露早tag为什么不是应援色?
-
-
- A:
-
- 露早GOGO的应援色为
-
- #3dff9e
-
- ,tag字面显示不明显,所以更换为黑露早形态的
- #A0191D
-
-
-
- -
-
- Q:
- 如何进行用户反馈?
-
-
- A:
-
- 请前往
-
- eoefans反馈
-
-
-
-
- -
-
- Q:
- 图片页图片太小了?
-
-
- A:
-
- 图片页可点击图片进入放大镜模式,支持手势返回和空白处返回;可使用双指放大对图片大小进行调整。
-
-
-
-
-
-
-
- >
-);
-
-export default function LOGO() {
- const [open, set] = useState(false),
- handlerClick = () => set((open) => !open);
- return (
-
-
- EOEfans-web端
-
-
-
-
-
- );
-}
-const H1 = styled("h1")(({ theme }) => ({
- fontSize: "24px",
- [theme.breakpoints.down("sm")]: {
- fontSize: "15px",
- },
-}));
-
-const Yituo: FC<{
- height: number | string;
- width: number | string;
-}> = ({ height, width }) => (
-
-);
diff --git a/src/routers/layout/logo/index.tsx b/src/routers/layout/logo/index.tsx
new file mode 100644
index 0000000..61129b2
--- /dev/null
+++ b/src/routers/layout/logo/index.tsx
@@ -0,0 +1,71 @@
+import { Button, Badge } from "@mui/material";
+import { useState, useMemo, FC } from "react";
+import { H1, Explain, Yituo } from "./modal";
+import styles from "./logo.module.less";
+import { Storage } from "../tools";
+
+const QAStorage = new Storage("QAUpdate");
+//暂时先这样
+const _qa_update_time = `2023-2-2`;
+const useCheckQANews = () => {
+ const local_qa_value = useMemo(() => {
+ return QAStorage.getLocalStorage("");
+ }, []);
+ const [shouldShowNews, set] = useState(local_qa_value !== _qa_update_time),
+ handlerReadedNews = () => {
+ QAStorage.setLocalstorage(_qa_update_time);
+ set(() => false);
+ };
+ return [shouldShowNews, handlerReadedNews] as [boolean, () => void];
+};
+
+export default function LOGO() {
+ const [open, set] = useState(false);
+ const [shouldShowNews, handlerReadedNews] = useCheckQANews();
+ const handlerClick = () => {
+ set((open) => !open);
+ handlerReadedNews();
+ };
+ return (
+
+
+ EOEfans-web端
+
+
+
+
+
+ );
+}
+
+const Show_news: FC<{ visible: boolean }> = ({ visible }) => (
+
+
+
+);
diff --git a/src/routers/layout/logo/logo.module.less b/src/routers/layout/logo/logo.module.less
new file mode 100644
index 0000000..3beb0bc
--- /dev/null
+++ b/src/routers/layout/logo/logo.module.less
@@ -0,0 +1,94 @@
+.logo {
+ display: flex;
+ align-items: center;
+ flex-flow: row-reverse nowrap;
+ padding: 5px 0;
+
+ a {
+ color: inherit;
+ text-decoration: none;
+ }
+
+
+
+ h1 {
+ margin: 0;
+ white-space: nowrap;
+ position: relative;
+ padding-right: 30px;
+ }
+
+}
+
+.modal {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ background-color: #fff;
+ border-radius: 4px;
+ padding: 15px 10px;
+ max-width: 400px;
+ width: 90%;
+
+
+
+
+ ul {
+ display: flex;
+ flex-flow: column nowrap;
+ max-height: 60vh;
+ overflow-y: auto;
+ overflow-x: hidden;
+ }
+
+ li {
+ margin: 10px;
+ list-style: none;
+ box-sizing: border-box;
+
+ &>p:not(:last-of-type) {
+ margin-bottom: 12px;
+ color: grey;
+ }
+
+ &>p {
+ display: flex;
+
+ strong {
+ flex: 0 0 25px;
+ }
+ }
+
+
+ }
+}
+
+
+.line_text {
+ width: 100%;
+ // color: #a2a9b6;
+ border: 0;
+ font-size: 14px;
+ padding: 1em 0;
+ position: relative;
+ -webkit-mask-image: linear-gradient(to right,
+ transparent,
+ black,
+ transparent);
+ mask-image: linear-gradient(to right, transparent, black, transparent);
+
+ &::before {
+ content: attr(data-content);
+ position: absolute;
+ padding: 0 1ch;
+ line-height: 1px;
+ border: solid #d0d0d5;
+ border-width: 0 99vw;
+ width: fit-content;
+ /* for 不支持fit-content浏览器 */
+ white-space: nowrap;
+ left: 50%;
+ transform: translateX(-50%);
+ }
+}
\ No newline at end of file
diff --git a/src/routers/layout/logo/modal.tsx b/src/routers/layout/logo/modal.tsx
new file mode 100644
index 0000000..135c03a
--- /dev/null
+++ b/src/routers/layout/logo/modal.tsx
@@ -0,0 +1,166 @@
+import { Button, Link, Modal, styled } from "@mui/material";
+import { FC } from "react";
+import styles from "./logo.module.less";
+
+export const Explain: FC<{ open: boolean; handlerClick: () => void }> = (
+ props
+) => (
+ <>
+
+
+
+
+
+
+
+ >
+);
+
+export const H1 = styled("h1")(({ theme }) => ({
+ fontSize: "24px",
+ [theme.breakpoints.down("sm")]: {
+ fontSize: "15px",
+ },
+}));
+
+export const QA = () => (
+
+ -
+
+ Q:
+ 为什么界面这么丑?
+
+
+ A:
+ web端没有UI捏🙇♂️🙇♂️🙇♂️果咩。
+
+
+ -
+
+ Q:
+ 如何查找我想看的视频类型?
+
+
+ A:
+
+ 😩目前只能通过点击下方tag栏进行查询,其中各分区、原创和转载、
+ 最新发布和最多播放互斥外其他tag皆满足异或查询。
+
+ 🤔tag排序不是固定的,可以使用鼠标或者触摸按住tag半秒后进行移动。
+
+ 🤗可以自定义任何你想要的tag栏顺序,下一次访问也有效。
+
+
+
+ -
+
+ Q:
+ 露早tag为什么不是应援色?
+
+
+ A:
+
+ 露早GOGO的应援色为
+
+ #3dff9e
+
+ ,tag字面显示不明显,所以更换为黑露早形态的
+ #A0191D
+
+
+
+ -
+
+ Q:
+ 如何进行用户反馈?
+
+
+ A:
+
+ 请前往
+
+ eoefans反馈
+
+
+
+
+ -
+
+ Q:
+ 图片页图片太小了?
+
+
+ A:
+
+ 图片页可点击图片进入放大镜模式,支持手势返回和空白处返回;可使用双指放大对图片大小进行调整。
+
+
+
+
+);
+
+export const Yituo: FC<{
+ height: number | string;
+ width: number | string;
+}> = ({ height, width }) => (
+
+);
diff --git a/src/routers/photo/item/index.tsx b/src/routers/photo/item/index.tsx
index 3d01348..d535e40 100644
--- a/src/routers/photo/item/index.tsx
+++ b/src/routers/photo/item/index.tsx
@@ -51,19 +51,20 @@ export default function PhotoCard(props: CardType) {
);
}
-const DivImgNum = styled("div")`
- position: absolute;
- right: 0px;
- top: 0px;
- padding: 7px;
- color: white;
- background-color: rgba(0, 0, 0, 0.4);
- display: flex;
- justify-content: center;
- align-items: center;
- column-gap: 2px;
- pointer-events: none;
-`;
+const DivImgNum = styled("div")(({ theme }) => ({
+ position: "absolute",
+ right: "0px",
+ top: "0px",
+ padding: "7px",
+ color: "white",
+ backgroundColor: "rgba(0, 0, 0, 0.4)",
+ display: "flex",
+ justifyContent: "center",
+ alignItems: "center",
+ columnGap: "2px",
+ pointerEvents: "none",
+ fontSize: "14px",
+}));
const DivJump = styled("div")(({ theme }) => ({
borderBottomLeftRadius: "8px",
From caae6f9c0142abdb3a670fb667c38115af8e394f Mon Sep 17 00:00:00 2001
From: master1lan <278457198@qq.com>
Date: Sat, 11 Feb 2023 18:57:32 +0800
Subject: [PATCH 10/10] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.github/dependabot.yml | 17 +++
...static-web-apps-white-flower-066564700.yml | 45 -------
.github/workflows/azure-staticwebapp.yml | 115 ++++++++++++++++++
3 files changed, 132 insertions(+), 45 deletions(-)
create mode 100644 .github/dependabot.yml
delete mode 100644 .github/workflows/azure-static-web-apps-white-flower-066564700.yml
create mode 100644 .github/workflows/azure-staticwebapp.yml
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..bde4b4f
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,17 @@
+# To get started with Dependabot version updates, you'll need to specify which
+# package ecosystems to update and where the package manifests are located.
+# Please see the documentation for all configuration options:
+# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
+
+version: 2
+updates:
+ - package-ecosystem: "npm" # See documentation for possible values
+ directory: "/" # Location of package manifests
+ schedule:
+ interval: "weekly"
+ day: "friday"
+ time: "09:00"
+ timezone: "Asia/Shanghai"
+ open-pull-requests-limit: 20
+ reviewers:
+ - "EOEFANS/Web-dev"
diff --git a/.github/workflows/azure-static-web-apps-white-flower-066564700.yml b/.github/workflows/azure-static-web-apps-white-flower-066564700.yml
deleted file mode 100644
index b3157b9..0000000
--- a/.github/workflows/azure-static-web-apps-white-flower-066564700.yml
+++ /dev/null
@@ -1,45 +0,0 @@
-name: Azure Static Web Apps CI/CD
-
-on:
- push:
- branches:
- - master
- pull_request:
- types: [opened, synchronize, reopened, closed]
- branches:
- - master
-
-jobs:
- build_and_deploy_job:
- if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
- runs-on: ubuntu-latest
- name: Build and Deploy Job
- steps:
- - uses: actions/checkout@v2
- with:
- submodules: true
- - name: Build And Deploy
- id: builddeploy
- uses: Azure/static-web-apps-deploy@v1
- with:
- azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_FLOWER_066564700 }}
- repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
- action: "upload"
- ###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
- # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
- app_location: "/" # App source code path
- api_location: "" # Api source code path - optional
- output_location: "dist" # Built app content directory - optional
- ###### End of Repository/Build Configurations ######
-
- close_pull_request_job:
- if: github.event_name == 'pull_request' && github.event.action == 'closed'
- runs-on: ubuntu-latest
- name: Close Pull Request Job
- steps:
- - name: Close Pull Request
- id: closepullrequest
- uses: Azure/static-web-apps-deploy@v1
- with:
- azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_FLOWER_066564700 }}
- action: "close"
diff --git a/.github/workflows/azure-staticwebapp.yml b/.github/workflows/azure-staticwebapp.yml
new file mode 100644
index 0000000..7b93c7b
--- /dev/null
+++ b/.github/workflows/azure-staticwebapp.yml
@@ -0,0 +1,115 @@
+# This workflow will build and push a web application to an Azure Static Web App when you change your code.
+#
+# This workflow assumes you have already created the target Azure Static Web App.
+# For instructions see https://docs.microsoft.com/azure/static-web-apps/get-started-portal?tabs=vanilla-javascript
+#
+# To configure this workflow:
+#
+# 1. Set up a secret in your repository named AZURE_STATIC_WEB_APPS_API_TOKEN with the value of your Static Web Apps deployment token.
+# For instructions on obtaining the deployment token see: https://docs.microsoft.com/azure/static-web-apps/deployment-token-management
+#
+# 3. Change the values for the APP_LOCATION, API_LOCATION and APP_ARTIFACT_LOCATION, AZURE_STATIC_WEB_APPS_API_TOKEN environment variables (below).
+# For instructions on setting up the appropriate configuration values go to https://docs.microsoft.com/azure/static-web-apps/front-end-frameworks
+name: Deploy web app to Azure Static Web Apps
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ types: [synchronize, closed]
+ branches: [ "main" ]
+
+# Environment variables available to all jobs and steps in this workflow
+env:
+ APP_LOCATION: "dist" # location of your client code
+ API_LOCATION: "" # location of your api source code - optional
+ APP_ARTIFACT_LOCATION: "" # location of client code build output
+ AZURE_STATIC_WEB_APPS_API_TOKEN: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }} # secret containing deployment token for your static web app
+ SKIP_APP_BUILD: true
+
+permissions:
+ contents: read
+
+jobs:
+ build_and_deploy_job:
+ permissions:
+ contents: read # for actions/checkout to fetch code
+ pull-requests: write # for Azure/static-web-apps-deploy to comment on PRs
+ if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
+ runs-on: [ self-hosted, Linux ]
+
+ strategy:
+ matrix:
+ node-version: [16.x]
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
+
+ name: Build and Deploy Job
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+
+
+ - uses: actions/setup-node@v3
+ name: Use Node.js ${{ matrix.node-version }}
+ with:
+ node-version: ${{ matrix.node-version }}
+
+ - uses: pnpm/action-setup@v2
+ name: Install pnpm
+ id: pnpm-install
+ with:
+ version: 7
+ run_install: false
+
+ - name: Get pnpm store directory
+ id: pnpm-cache
+ shell: bash
+ run: |
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
+
+ - uses: actions/cache@v3
+ name: Setup pnpm cache
+ with:
+ path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-store-
+
+ - name: Install dependencies
+ run: pnpm install
+
+ - name: Use pnpm to build
+ run: pnpm run build
+
+# - name: post-build test
+# run: pnpm test
+
+ - name: Deploy build artifacts to Azure
+ id: builddeploy
+ uses: Azure/static-web-apps-deploy@v1
+ with:
+ azure_static_web_apps_api_token: ${{ env.AZURE_STATIC_WEB_APPS_API_TOKEN }} # secret containing api token for app
+ repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
+ action: "upload"
+ ###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
+ # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
+ app_location: ${{ env.APP_LOCATION }}
+ api_location: ${{ env.API_LOCATION }}
+ app_artifact_location: ${{ env.APP_ARTIFACT_LOCATION }}
+ skip_app_build: ${{ env.SKIP_APP_BUILD }} #comment this out to use azure oryx build
+ ###### End of Repository/Build Configurations ######
+
+ close_pull_request_job:
+ permissions:
+ contents: none
+ if: github.event_name == 'pull_request' && github.event.action == 'closed'
+ runs-on: [ self-hosted, Linux ]
+ name: Close Pull Request Job
+ steps:
+ - name: Close Pull Request
+ id: closepullrequest
+ uses: Azure/static-web-apps-deploy@v1
+ with:
+ azure_static_web_apps_api_token: ${{ env.AZURE_STATIC_WEB_APPS_API_TOKEN }} # secret containing api token for app
+ action: "close"