diff --git a/.env.production b/.env.production index 2e21eb8..245e99d 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,2 @@ -VITE_API_URL=https://api.fatweb.top +VITE_API_URL=${PRODUCT_API_URL} VITE_API_TOKEN_URL=${VITE_API_URL}/token \ No newline at end of file diff --git a/.env.testing b/.env.testing index 86f60f7..ecf602a 100644 --- a/.env.testing +++ b/.env.testing @@ -1,3 +1,3 @@ NODE_ENV=development -VITE_API_URL=https://api-test.fatweb.top +VITE_API_URL=${TEST_API_URL} VITE_API_TOKEN_URL=${VITE_API_URL}/token \ No newline at end of file diff --git a/index.html b/index.html index 93b7658..a51f501 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - FatWeb + Oxygen Toolbox
diff --git a/package-lock.json b/package-lock.json index 1e3d549..971b8f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "fatweb-ui", + "name": "oxygen-ui", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "fatweb-ui", + "name": "oxygen-ui", "version": "0.0.0", "dependencies": { "@ant-design/icons": "^5.2.6", diff --git a/package.json b/package.json index 2d59e37..bd89530 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "fatweb-ui", + "name": "oxygen-ui", "private": true, "version": "0.0.0", "type": "module", diff --git a/src/assets/css/components/home/footer.scss b/src/assets/css/components/home/footer.scss deleted file mode 100644 index 551c276..0000000 --- a/src/assets/css/components/home/footer.scss +++ /dev/null @@ -1,21 +0,0 @@ -@use "@/assets/css/constants" as constants; - -.icons { - display: flex; - gap: 20px; - - .icon { - font-size: 8em; - color: constants.$origin-color; - } -} - -.links { - font-size: 2em; - text-decoration: underline; - color: constants.$origin-color; - - > * { - color: constants.$origin-color; - } -} \ No newline at end of file diff --git a/src/assets/css/components/home/home.scss b/src/assets/css/components/home/home.scss deleted file mode 100644 index 5cd495e..0000000 --- a/src/assets/css/components/home/home.scss +++ /dev/null @@ -1,11 +0,0 @@ -[data-component=home].indicator { - position: fixed; - margin: { - right: 20px; - }; - width: 20px; - height: 100px; - right: 0; - top: 50%; - transform: translateY(-50%); -} \ No newline at end of file diff --git a/src/assets/css/components/home/slogan.scss b/src/assets/css/components/home/slogan.scss deleted file mode 100644 index 018eec3..0000000 --- a/src/assets/css/components/home/slogan.scss +++ /dev/null @@ -1,63 +0,0 @@ -@use "@/assets/css/mixins" as mixins; - -.center-box { - display: flex; - flex-direction: column; -} - -.big-logo { - font: { - size: 5em; - weight: bold; - }; - color: #666; -} - -.slogan { - font: { - size: 1.3em; - style: italic; - }; - color: #666; - - .cursor { - font-style: normal; - animation: 1s infinite; - - @include mixins.unique-keyframes { - 0% { - opacity: 0; - } - 50% { - opacity: 1; - } - 100% { - opacity: 0; - } - } - } -} - -.scroll-down { - position: absolute; - bottom: 10px; - padding: 20px; - cursor: pointer; - animation: 1.5s infinite; - @include mixins.unique-keyframes { - 0%, - 100% { - -ms-filter: none; - filter: none; - opacity: 1; - transform: translateY(10px); - } - - 50% { - -ms-filter: alpha(opacity=40); - filter: alpha(opacity=40); - opacity: .4; - transform: translateY(-10px); - } - } -} \ No newline at end of file diff --git a/src/assets/css/pages/home-framework.scss b/src/assets/css/pages/home-framework.scss deleted file mode 100644 index 78aae96..0000000 --- a/src/assets/css/pages/home-framework.scss +++ /dev/null @@ -1,217 +0,0 @@ -@use "@/assets/css/mixins" as mixins; -@use "@/assets/css/constants" as constants; - -[data-component=home-framework] { - .nav { - display: flex; - position: fixed; - align-items: center; - z-index: 1; - width: 100%; - height: 70px; - background-color: constants.$origin-color; - border: { - bottom: { - width: 1px; - style: solid; - color: constants.$border-color; - } - } - animation: .5s ease both; - - @include mixins.unique-keyframes { - 0% { - transform: translateY(-100%); - } - 100% { - transform: translateY(0); - } - } - - .logo { - padding: 0 40px; - - .title { - font-size: 2.8em; - font-family: century gothic, texgyreadventor, stheiti, sans-serif; - } - } - - nav { - display: flex; - justify-content: end; - flex: 1; - transition: { - property: all; - duration: .5s; - }; - - .menu { - padding: 0 30px; - - .item { - display: inline-block; - position: relative; - font-size: 1.5em; - transition: { - property: all; - duration: .3s; - }; - - a { - padding: 5px 20px; - color: constants.$url-color; - } - } - - .active { - border: { - bottom: { - width: 2px; - style: solid; - color: constants.$url-active-color; - }; - }; - } - - .item:hover { - transform: translateY(-5px); - } - - .item:hover .submenu { - display: block; - border: { - width: 1px; - color: constants.$border-color; - style: solid; - }; - animation: 0.3s; - - @include mixins.unique-keyframes { - 0% { - transform: translateY(-10px); - opacity: 0; - } - } - } - - .submenu { - display: none; - position: absolute; - width: 100%; - text-align: center; - background-color: constants.$origin-color; - overflow: hidden; - - .item { - display: block; - font-size: 0.8em; - transition: all 0s; - - a { - display: block; - padding: 8px 0; - } - } - - .item:hover { - transform: none; - - a { - background-color: constants.$focus-color !important; - } - } - - .active { - font-weight: bold; - border: none; - } - } - } - - .dropdown-menu-button { - display: none; - margin: 0 20px; - width: 45px; - height: 45px; - justify-content: center; - align-items: center; - border-radius: 6px; - } - - .dropdown-menu-button.active { - background-color: transparentize(constants.$focus-color, 0.8); - border: { - width: 1px; - color: constants.$focus-color; - style: solid; - }; - } - - @media screen and (max-width: 900px) { - .menu { - display: none; - } - - .dropdown-menu-button { - display: flex; - } - } - } - } - - .dropdown-menu-content { - display: none; - - @media screen and (max-width: 900px) { - display: none; - position: fixed; - width: 100%; - top: 70px; - border: { - width: 1px; - color: constants.$border-color; - style: solid; - }; - background-color: constants.$origin-color; - z-index: 1; - - ul { - li { - font-size: 1.2em; - text-align: center; - - a { - display: block; - width: 100%; - height: 100%; - padding: 10px; - } - - :hover { - background-color: constants.$focus-color; - } - } - } - } - } - - @media screen and (max-width: 900px) { - .dropdown-menu-content.show { - display: block; - } - } - - .nav.hide { - animation: .5s ease both; - - @include mixins.unique-keyframes { - 0% { - transform: translateY(0); - } - 100% { - transform: translateY(-100%); - } - } - } -} \ No newline at end of file diff --git a/src/components/common/FullscreenLoadingMask.tsx b/src/components/common/FullscreenLoadingMask.tsx index 749a4ce..5310b94 100644 --- a/src/components/common/FullscreenLoadingMask.tsx +++ b/src/components/common/FullscreenLoadingMask.tsx @@ -8,7 +8,7 @@ const FullscreenLoadingMask: React.FC = () => { const loadingIcon = ( <> diff --git a/src/components/common/LoadingMask.tsx b/src/components/common/LoadingMask.tsx index 0107468..41d5854 100644 --- a/src/components/common/LoadingMask.tsx +++ b/src/components/common/LoadingMask.tsx @@ -11,7 +11,7 @@ const LoadingMask: React.FC = (props) => { const loadingIcon = ( <> diff --git a/src/components/common/sidebar/SidebarFooter.tsx b/src/components/common/sidebar/SidebarFooter.tsx index 2afed3e..196686f 100644 --- a/src/components/common/sidebar/SidebarFooter.tsx +++ b/src/components/common/sidebar/SidebarFooter.tsx @@ -33,7 +33,7 @@ const SidebarFooter: React.FC = () => { removeToken() notification.info({ message: '已退出登录', - icon: + icon: }) setTimeout(() => { window.location.reload() @@ -65,7 +65,7 @@ const SidebarFooter: React.FC = () => { {avatar ? ( {'Avatar'} ) : ( - + )}