diff --git a/.umirc.js b/.umirc.js index dee47d86..02b80107 100755 --- a/.umirc.js +++ b/.umirc.js @@ -1,5 +1,4 @@ import { defineConfig } from 'umi'; -import slash from 'slash'; const { resolve, join } = require('path'); diff --git a/.vscode/launch.json b/.vscode/launch.json old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/config/app_keys.js b/config/app_keys.js old mode 100644 new mode 100755 diff --git a/config/endpoints.js b/config/endpoints.js old mode 100644 new mode 100755 diff --git a/config/index.js b/config/index.js old mode 100644 new mode 100755 diff --git a/electron-builder.yml b/electron-builder.yml old mode 100644 new mode 100755 diff --git a/globals/links.js b/globals/links.js old mode 100644 new mode 100755 diff --git a/globals/sidebar_menu.js b/globals/sidebar_menu.js old mode 100644 new mode 100755 diff --git a/globals/theme_settings.js b/globals/theme_settings.js old mode 100644 new mode 100755 diff --git a/main/configs/config.js b/main/configs/config.js old mode 100644 new mode 100755 diff --git a/main/icon.png b/main/icon.png old mode 100644 new mode 100755 diff --git a/main/index.js b/main/index.js old mode 100644 new mode 100755 diff --git a/main/statics/loading.css b/main/statics/loading.css old mode 100644 new mode 100755 diff --git a/main/statics/loading.html b/main/statics/loading.html old mode 100644 new mode 100755 diff --git a/main/statics/loading_dev.html b/main/statics/loading_dev.html old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Bold-webfont.eot b/out/fonts/OpenSans-Bold-webfont.eot old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Bold-webfont.svg b/out/fonts/OpenSans-Bold-webfont.svg old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Bold-webfont.woff b/out/fonts/OpenSans-Bold-webfont.woff old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-BoldItalic-webfont.eot b/out/fonts/OpenSans-BoldItalic-webfont.eot old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-BoldItalic-webfont.svg b/out/fonts/OpenSans-BoldItalic-webfont.svg old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-BoldItalic-webfont.woff b/out/fonts/OpenSans-BoldItalic-webfont.woff old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Italic-webfont.eot b/out/fonts/OpenSans-Italic-webfont.eot old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Italic-webfont.svg b/out/fonts/OpenSans-Italic-webfont.svg old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Italic-webfont.woff b/out/fonts/OpenSans-Italic-webfont.woff old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Light-webfont.eot b/out/fonts/OpenSans-Light-webfont.eot old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Light-webfont.svg b/out/fonts/OpenSans-Light-webfont.svg old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Light-webfont.woff b/out/fonts/OpenSans-Light-webfont.woff old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-LightItalic-webfont.eot b/out/fonts/OpenSans-LightItalic-webfont.eot old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-LightItalic-webfont.svg b/out/fonts/OpenSans-LightItalic-webfont.svg old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-LightItalic-webfont.woff b/out/fonts/OpenSans-LightItalic-webfont.woff old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Regular-webfont.eot b/out/fonts/OpenSans-Regular-webfont.eot old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Regular-webfont.svg b/out/fonts/OpenSans-Regular-webfont.svg old mode 100644 new mode 100755 diff --git a/out/fonts/OpenSans-Regular-webfont.woff b/out/fonts/OpenSans-Regular-webfont.woff old mode 100644 new mode 100755 diff --git a/out/global.html b/out/global.html old mode 100644 new mode 100755 diff --git a/out/index.html b/out/index.html old mode 100644 new mode 100755 diff --git a/out/index.js.html b/out/index.js.html old mode 100644 new mode 100755 diff --git a/out/scripts/linenumber.js b/out/scripts/linenumber.js old mode 100644 new mode 100755 diff --git a/out/scripts/prettify/Apache-License-2.0.txt b/out/scripts/prettify/Apache-License-2.0.txt old mode 100644 new mode 100755 diff --git a/out/scripts/prettify/lang-css.js b/out/scripts/prettify/lang-css.js old mode 100644 new mode 100755 diff --git a/out/scripts/prettify/prettify.js b/out/scripts/prettify/prettify.js old mode 100644 new mode 100755 diff --git a/out/styles/jsdoc-default.css b/out/styles/jsdoc-default.css old mode 100644 new mode 100755 diff --git a/out/styles/prettify-jsdoc.css b/out/styles/prettify-jsdoc.css old mode 100644 new mode 100755 diff --git a/out/styles/prettify-tomorrow.css b/out/styles/prettify-tomorrow.css old mode 100644 new mode 100755 diff --git a/package.json b/package.json index 48e07be3..5a3802c6 100755 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "scripts": { "start": "umi dev", "postinstall": "electron-builder install-app-deps", - "electronDev": "concurrently \"electron --enable-transparent-visuals .\" \"umi dev\"", + "electronDev": "concurrently \"electron .\" \"umi dev\"", "build": "npm run build:main && npm run build:renderer", "build:main": "ESLINT=none roadhog build", "build:renderer": "ESLINT=none umi build", diff --git a/public/favicon.png b/public/favicon.png old mode 100644 new mode 100755 diff --git a/src/components/About/index.js b/src/components/About/index.js old mode 100644 new mode 100755 diff --git a/src/components/About/index.less b/src/components/About/index.less old mode 100644 new mode 100755 diff --git a/src/components/Icons/custom.js b/src/components/Icons/custom.js old mode 100644 new mode 100755 diff --git a/src/components/Icons/index.js b/src/components/Icons/index.js old mode 100644 new mode 100755 diff --git a/src/components/Layout/ControlBar/index.js b/src/components/Layout/ControlBar/index.js old mode 100644 new mode 100755 index b3e83e82..11ce8776 --- a/src/components/Layout/ControlBar/index.js +++ b/src/components/Layout/ControlBar/index.js @@ -16,7 +16,7 @@ const animationStyles = { }, } -export const control = { +export const ControlController = { set: (e) => { if (!window.ControlComponent.state.active) { window.ControlComponent.setState({ fadein: true }) diff --git a/src/components/Layout/ControlBar/index.less b/src/components/Layout/ControlBar/index.less old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/components/Card_Component.tsx b/src/components/Layout/Overlay/components/Card_Component.tsx old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/components/cards/__searchBar.js b/src/components/Layout/Overlay/components/cards/__searchBar.js old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/components/cards/__searchBar.less b/src/components/Layout/Overlay/components/cards/__searchBar.less old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/components/cards/__suggestions.js b/src/components/Layout/Overlay/components/cards/__suggestions.js old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/components/cards/__suggestions.less b/src/components/Layout/Overlay/components/cards/__suggestions.less old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/components/cards/__trendings.js b/src/components/Layout/Overlay/components/cards/__trendings.js old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/components/cards/__trendings.less b/src/components/Layout/Overlay/components/cards/__trendings.less old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/components/index.js b/src/components/Layout/Overlay/components/index.js old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/components/layout/Primary.tsx b/src/components/Layout/Overlay/components/layout/Primary.tsx old mode 100644 new mode 100755 index ea21a8ac..bcadc080 --- a/src/components/Layout/Overlay/components/layout/Primary.tsx +++ b/src/components/Layout/Overlay/components/layout/Primary.tsx @@ -3,7 +3,7 @@ import * as antd from 'antd' import * as Icons from 'components/Icons' import styles from '../../index.less' import classnames from 'classnames' -import { Swapper } from '../../index.tsx' +import { Swapper } from '../../index.js' export interface overlay_primary_props { y?: number; diff --git a/src/components/Layout/Overlay/components/layout/Secondary.tsx b/src/components/Layout/Overlay/components/layout/Secondary.tsx old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/index.tsx b/src/components/Layout/Overlay/index.js old mode 100644 new mode 100755 similarity index 100% rename from src/components/Layout/Overlay/index.tsx rename to src/components/Layout/Overlay/index.js diff --git a/src/components/Layout/Overlay/index.less b/src/components/Layout/Overlay/index.less old mode 100644 new mode 100755 diff --git a/src/components/Layout/Overlay/reducers.js b/src/components/Layout/Overlay/reducers.js old mode 100644 new mode 100755 diff --git a/src/components/Layout/Sider/default/index.js b/src/components/Layout/Sider/default/index.js old mode 100644 new mode 100755 diff --git a/src/components/Layout/Sider/default/index.less b/src/components/Layout/Sider/default/index.less old mode 100644 new mode 100755 diff --git a/src/components/Layout/Sider/mobile/index.js b/src/components/Layout/Sider/mobile/index.js old mode 100644 new mode 100755 diff --git a/src/components/Layout/Sider/mobile/index.less b/src/components/Layout/Sider/mobile/index.less old mode 100644 new mode 100755 diff --git a/src/components/Layout/WindowNavbar/index.js b/src/components/Layout/WindowNavbar/index.js old mode 100644 new mode 100755 diff --git a/src/components/Layout/WindowNavbar/index.less b/src/components/Layout/WindowNavbar/index.less old mode 100644 new mode 100755 diff --git a/src/components/Layout/index.js b/src/components/Layout/index.js index 4566e41a..24be4d3c 100755 --- a/src/components/Layout/index.js +++ b/src/components/Layout/index.js @@ -1,6 +1,6 @@ import Sider from './Sider' import Control from './ControlBar' -import Overlay from './Overlay/index.tsx' -import WindowNavbar from './WindowNavbar/index.js' +import Overlay from './Overlay' +import WindowNavbar from './WindowNavbar' export { Sider, Control, Overlay, WindowNavbar } diff --git a/src/components/Page/Page.less b/src/components/Page/Page.less old mode 100644 new mode 100755 diff --git a/src/components/Page/index.js b/src/components/Page/index.js old mode 100644 new mode 100755 diff --git a/src/core/cores/index.js b/src/core/cores/index.js old mode 100644 new mode 100755 diff --git a/src/core/cores/interface_helper/index.js b/src/core/cores/interface_helper/index.js old mode 100644 new mode 100755 index c6ad6be3..b635eecc --- a/src/core/cores/interface_helper/index.js +++ b/src/core/cores/interface_helper/index.js @@ -14,7 +14,7 @@ */ // Reducers & helpers -import { Swapper } from 'components/layout/Overlay/index.tsx' +import { Swapper } from 'components/Layout/Overlay' import { useSelector } from 'umi'; import { connect } from 'dva'; diff --git a/src/core/cores/router/index.js b/src/core/cores/router/index.js old mode 100644 new mode 100755 diff --git a/src/core/cores/session/index.js b/src/core/cores/session/index.js old mode 100644 new mode 100755 diff --git a/src/core/cores/user/index.js b/src/core/cores/user/index.js old mode 100644 new mode 100755 diff --git a/src/core/index.js b/src/core/index.js old mode 100644 new mode 100755 index 39280711..cac3e25b --- a/src/core/index.js +++ b/src/core/index.js @@ -28,6 +28,14 @@ export const app_info = { layout: platform.layout }; +export function isOs(os){ + if(process){ + return process.platform === os? true : false + }else{ + return false + } +} + export function imageToBase64(img, callback){ const reader = new FileReader() reader.addEventListener('load', () => callback(reader.result)) diff --git a/src/core/libs/errorhandler/index.js b/src/core/libs/errorhandler/index.js old mode 100644 new mode 100755 diff --git a/src/core/libs/index.js b/src/core/libs/index.js old mode 100644 new mode 100755 diff --git a/src/core/libs/interface/export_data/index.tsx b/src/core/libs/interface/export_data/index.tsx old mode 100644 new mode 100755 diff --git a/src/core/libs/interface/index.js b/src/core/libs/interface/index.js old mode 100644 new mode 100755 diff --git a/src/core/libs/interface/modals/modals.js b/src/core/libs/interface/modals/modals.js old mode 100644 new mode 100755 diff --git a/src/core/libs/interface/modals/modals.less b/src/core/libs/interface/modals/modals.less old mode 100644 new mode 100755 diff --git a/src/core/libs/interface/notify/index.js b/src/core/libs/interface/notify/index.js old mode 100644 new mode 100755 diff --git a/src/core/libs/settings/index.js b/src/core/libs/settings/index.js old mode 100644 new mode 100755 diff --git a/src/core/libs/style/index.js b/src/core/libs/style/index.js old mode 100644 new mode 100755 diff --git a/src/core/libs/v3_model/index.js b/src/core/libs/v3_model/index.js old mode 100644 new mode 100755 diff --git a/src/core/libs/verbosity/index.js b/src/core/libs/verbosity/index.js old mode 100644 new mode 100755 diff --git a/src/layouts/PublicLayout.less b/src/layouts/PublicLayout.less old mode 100644 new mode 100755 diff --git a/src/pages/debug/antd.js b/src/pages/debug/antd.js old mode 100644 new mode 100755 diff --git a/src/pages/debug/api.js b/src/pages/debug/api.js old mode 100644 new mode 100755 diff --git a/src/pages/debug/api.less b/src/pages/debug/api.less old mode 100644 new mode 100755 diff --git a/src/pages/debug/core.js b/src/pages/debug/core.js old mode 100644 new mode 100755 diff --git a/src/pages/debug/index.js b/src/pages/debug/index.js old mode 100644 new mode 100755 diff --git a/src/pages/debug/index.less b/src/pages/debug/index.less old mode 100644 new mode 100755 diff --git a/src/pages/debug/theme.js b/src/pages/debug/theme.js old mode 100644 new mode 100755 diff --git a/src/pages/explore/index.js b/src/pages/explore/index.js old mode 100644 new mode 100755 diff --git a/src/pages/login/guest.js b/src/pages/login/guest.js old mode 100644 new mode 100755 diff --git a/src/pages/settings/components/base.js b/src/pages/settings/components/base.js index 2fb5bedb..1c7b784c 100755 --- a/src/pages/settings/components/base.js +++ b/src/pages/settings/components/base.js @@ -1,7 +1,7 @@ import React, { Component, Fragment } from 'react' import { List, Switch, Button, notification, InputNumber } from 'antd' import ListSettings from 'globals/settings' -import { control } from 'components/layout/ControlBar' +import { ControlController } from 'components/Layout/ControlBar' import verbosity from 'core/libs/verbosity' import * as Icons from 'components/Icons' @@ -52,7 +52,7 @@ class Base extends Component { , ] - control.set(ListControls) + ControlController.set(ListControls) } saveChanges() { @@ -63,7 +63,7 @@ class Base extends Component { description: 'The configuration has been saved, it may for some configuration to make changes you need to reload the application', }) - control.close() + ControlController.close() } onChange(item) { diff --git a/src/pages/settings/components/electron/index.js b/src/pages/settings/components/electron/index.js old mode 100644 new mode 100755 diff --git a/src/pages/settings/components/help/index.js b/src/pages/settings/components/help/index.js old mode 100644 new mode 100755 diff --git a/src/pages/settings/components/theme/index.js b/src/pages/settings/components/theme/index.js old mode 100644 new mode 100755 diff --git a/src/pages/settings/components/theme/index.less b/src/pages/settings/components/theme/index.less old mode 100644 new mode 100755 diff --git a/src/theme/antd-theme.less b/src/theme/antd-theme.less old mode 100644 new mode 100755 diff --git a/src/theme/base/components/Menssaging.less b/src/theme/base/components/Menssaging.less old mode 100644 new mode 100755 diff --git a/src/theme/base/components/PostCard.less b/src/theme/base/components/PostCard.less old mode 100644 new mode 100755 diff --git a/src/theme/base/fonts-import.css b/src/theme/base/fonts-import.css old mode 100644 new mode 100755 diff --git a/src/theme/base/index.less b/src/theme/base/index.less old mode 100644 new mode 100755 diff --git a/src/theme/base/layout/LeftSider.less b/src/theme/base/layout/LeftSider.less old mode 100644 new mode 100755 diff --git a/src/theme/base/layout/Overlay.less b/src/theme/base/layout/Overlay.less old mode 100644 new mode 100755 diff --git a/src/theme/base/layout/Primary_Layout.less b/src/theme/base/layout/Primary_Layout.less old mode 100644 new mode 100755 diff --git a/src/theme/base/resolutions.less b/src/theme/base/resolutions.less old mode 100644 new mode 100755 diff --git a/src/theme/base/vars.less b/src/theme/base/vars.less old mode 100644 new mode 100755 diff --git a/src/theme/index.js b/src/theme/index.js old mode 100644 new mode 100755 diff --git a/src/theme/index.less b/src/theme/index.less old mode 100644 new mode 100755 diff --git a/tsconfig.json b/tsconfig.json old mode 100644 new mode 100755 diff --git a/typings.d.ts b/typings.d.ts old mode 100644 new mode 100755