Merge branch 'fix--dirs-lowecased' into 'master'
fix: lowercased See merge request srgooglo/comty-development!4
@ -1,5 +1,4 @@
|
|||||||
import { defineConfig } from 'umi';
|
import { defineConfig } from 'umi';
|
||||||
import slash from 'slash';
|
|
||||||
|
|
||||||
const { resolve, join } = require('path');
|
const { resolve, join } = require('path');
|
||||||
|
|
||||||
|
0
.vscode/launch.json
vendored
Normal file → Executable file
0
config/app_keys.js
Normal file → Executable file
0
config/endpoints.js
Normal file → Executable file
0
config/index.js
Normal file → Executable file
0
electron-builder.yml
Normal file → Executable file
0
globals/links.js
Normal file → Executable file
0
globals/sidebar_menu.js
Normal file → Executable file
0
globals/theme_settings.js
Normal file → Executable file
0
main/configs/config.js
Normal file → Executable file
0
main/icon.png
Normal file → Executable file
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
0
main/index.js
Normal file → Executable file
0
main/statics/loading.css
Normal file → Executable file
0
main/statics/loading.html
Normal file → Executable file
0
main/statics/loading_dev.html
Normal file → Executable file
0
out/fonts/OpenSans-Bold-webfont.eot
Normal file → Executable file
0
out/fonts/OpenSans-Bold-webfont.svg
Normal file → Executable file
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
0
out/fonts/OpenSans-Bold-webfont.woff
Normal file → Executable file
0
out/fonts/OpenSans-BoldItalic-webfont.eot
Normal file → Executable file
0
out/fonts/OpenSans-BoldItalic-webfont.svg
Normal file → Executable file
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
0
out/fonts/OpenSans-BoldItalic-webfont.woff
Normal file → Executable file
0
out/fonts/OpenSans-Italic-webfont.eot
Normal file → Executable file
0
out/fonts/OpenSans-Italic-webfont.svg
Normal file → Executable file
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
0
out/fonts/OpenSans-Italic-webfont.woff
Normal file → Executable file
0
out/fonts/OpenSans-Light-webfont.eot
Normal file → Executable file
0
out/fonts/OpenSans-Light-webfont.svg
Normal file → Executable file
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
0
out/fonts/OpenSans-Light-webfont.woff
Normal file → Executable file
0
out/fonts/OpenSans-LightItalic-webfont.eot
Normal file → Executable file
0
out/fonts/OpenSans-LightItalic-webfont.svg
Normal file → Executable file
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
0
out/fonts/OpenSans-LightItalic-webfont.woff
Normal file → Executable file
0
out/fonts/OpenSans-Regular-webfont.eot
Normal file → Executable file
0
out/fonts/OpenSans-Regular-webfont.svg
Normal file → Executable file
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 117 KiB |
0
out/fonts/OpenSans-Regular-webfont.woff
Normal file → Executable file
0
out/global.html
Normal file → Executable file
0
out/index.html
Normal file → Executable file
0
out/index.js.html
Normal file → Executable file
0
out/scripts/linenumber.js
Normal file → Executable file
0
out/scripts/prettify/Apache-License-2.0.txt
Normal file → Executable file
0
out/scripts/prettify/lang-css.js
Normal file → Executable file
0
out/scripts/prettify/prettify.js
Normal file → Executable file
0
out/styles/jsdoc-default.css
Normal file → Executable file
0
out/styles/prettify-jsdoc.css
Normal file → Executable file
0
out/styles/prettify-tomorrow.css
Normal file → Executable file
@ -22,7 +22,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "umi dev",
|
"start": "umi dev",
|
||||||
"postinstall": "electron-builder install-app-deps",
|
"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": "npm run build:main && npm run build:renderer",
|
||||||
"build:main": "ESLINT=none roadhog build",
|
"build:main": "ESLINT=none roadhog build",
|
||||||
"build:renderer": "ESLINT=none umi build",
|
"build:renderer": "ESLINT=none umi build",
|
||||||
|
0
public/favicon.png
Normal file → Executable file
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
0
src/components/About/index.js
Normal file → Executable file
0
src/components/About/index.less
Normal file → Executable file
0
src/components/Icons/custom.js
Normal file → Executable file
0
src/components/Icons/index.js
Normal file → Executable file
2
src/components/Layout/ControlBar/index.js
Normal file → Executable file
@ -16,7 +16,7 @@ const animationStyles = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export const control = {
|
export const ControlController = {
|
||||||
set: (e) => {
|
set: (e) => {
|
||||||
if (!window.ControlComponent.state.active) {
|
if (!window.ControlComponent.state.active) {
|
||||||
window.ControlComponent.setState({ fadein: true })
|
window.ControlComponent.setState({ fadein: true })
|
||||||
|
0
src/components/Layout/ControlBar/index.less
Normal file → Executable file
0
src/components/Layout/Overlay/components/Card_Component.tsx
Normal file → Executable file
0
src/components/Layout/Overlay/components/cards/__searchBar.js
Normal file → Executable file
0
src/components/Layout/Overlay/components/cards/__searchBar.less
Normal file → Executable file
0
src/components/Layout/Overlay/components/cards/__suggestions.js
Normal file → Executable file
0
src/components/Layout/Overlay/components/cards/__suggestions.less
Normal file → Executable file
0
src/components/Layout/Overlay/components/cards/__trendings.js
Normal file → Executable file
0
src/components/Layout/Overlay/components/cards/__trendings.less
Normal file → Executable file
0
src/components/Layout/Overlay/components/index.js
Normal file → Executable file
2
src/components/Layout/Overlay/components/layout/Primary.tsx
Normal file → Executable file
@ -3,7 +3,7 @@ import * as antd from 'antd'
|
|||||||
import * as Icons from 'components/Icons'
|
import * as Icons from 'components/Icons'
|
||||||
import styles from '../../index.less'
|
import styles from '../../index.less'
|
||||||
import classnames from 'classnames'
|
import classnames from 'classnames'
|
||||||
import { Swapper } from '../../index.tsx'
|
import { Swapper } from '../../index.js'
|
||||||
|
|
||||||
export interface overlay_primary_props {
|
export interface overlay_primary_props {
|
||||||
y?: number;
|
y?: number;
|
||||||
|
0
src/components/Layout/Overlay/components/layout/Secondary.tsx
Normal file → Executable file
0
src/components/Layout/Overlay/index.tsx → src/components/Layout/Overlay/index.js
Normal file → Executable file
0
src/components/Layout/Overlay/index.less
Normal file → Executable file
0
src/components/Layout/Overlay/reducers.js
Normal file → Executable file
0
src/components/Layout/Sider/default/index.js
Normal file → Executable file
0
src/components/Layout/Sider/default/index.less
Normal file → Executable file
0
src/components/Layout/Sider/mobile/index.js
Normal file → Executable file
0
src/components/Layout/Sider/mobile/index.less
Normal file → Executable file
0
src/components/Layout/WindowNavbar/index.js
Normal file → Executable file
0
src/components/Layout/WindowNavbar/index.less
Normal file → Executable file
@ -1,6 +1,6 @@
|
|||||||
import Sider from './Sider'
|
import Sider from './Sider'
|
||||||
import Control from './ControlBar'
|
import Control from './ControlBar'
|
||||||
import Overlay from './Overlay/index.tsx'
|
import Overlay from './Overlay'
|
||||||
import WindowNavbar from './WindowNavbar/index.js'
|
import WindowNavbar from './WindowNavbar'
|
||||||
|
|
||||||
export { Sider, Control, Overlay, WindowNavbar }
|
export { Sider, Control, Overlay, WindowNavbar }
|
||||||
|
0
src/components/Page/Page.less
Normal file → Executable file
0
src/components/Page/index.js
Normal file → Executable file
0
src/core/cores/index.js
Normal file → Executable file
2
src/core/cores/interface_helper/index.js
Normal file → Executable file
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Reducers & helpers
|
// Reducers & helpers
|
||||||
import { Swapper } from 'components/layout/Overlay/index.tsx'
|
import { Swapper } from 'components/Layout/Overlay'
|
||||||
import { useSelector } from 'umi';
|
import { useSelector } from 'umi';
|
||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
|
|
||||||
|
0
src/core/cores/router/index.js
Normal file → Executable file
0
src/core/cores/session/index.js
Normal file → Executable file
0
src/core/cores/user/index.js
Normal file → Executable file
8
src/core/index.js
Normal file → Executable file
@ -28,6 +28,14 @@ export const app_info = {
|
|||||||
layout: platform.layout
|
layout: platform.layout
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export function isOs(os){
|
||||||
|
if(process){
|
||||||
|
return process.platform === os? true : false
|
||||||
|
}else{
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export function imageToBase64(img, callback){
|
export function imageToBase64(img, callback){
|
||||||
const reader = new FileReader()
|
const reader = new FileReader()
|
||||||
reader.addEventListener('load', () => callback(reader.result))
|
reader.addEventListener('load', () => callback(reader.result))
|
||||||
|