Kaynağa Gözat

Merge branch 'master' into master

visuddhinanda 5 yıl önce
ebeveyn
işleme
0d249d9071

+ 2 - 3
.gitignore

@@ -1,9 +1,8 @@
-/user
+/user/
 /dicttext/system/*.db
 /dicttext/rich/*.db
-/font
 /appdata
 /log
 /palicsv
 /palihtml
-/temp
+/temp

+ 0 - 5
Cargo.lock

@@ -1,5 +0,0 @@
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-[[package]]
-name = "mint"
-version = "0.1.0"

+ 0 - 17
Cargo.toml

@@ -1,17 +0,0 @@
-[package]
-name = "mint"
-version = "0.1.0"
-authors = ["Jeremy Zheng <jitang.zheng@gmail.com>"]
-edition = "2018"
-description = "A totaly rewrite of PCD-Suite(by rust & react)."
-homepage = "https://github.com/iapt-platform/mint"
-license = "MIT"
-readme = "README.md"
-
-[profile.release]
-lto = true
-
-
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
-[dependencies]

+ 0 - 16
dashboard/.editorconfig

@@ -1,16 +0,0 @@
-# http://editorconfig.org
-root = true
-
-[*]
-indent_style = space
-indent_size = 2
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[*.md]
-trim_trailing_whitespace = false
-
-[Makefile]
-indent_style = tab

+ 0 - 9
dashboard/.gitignore

@@ -1,9 +0,0 @@
-# dependencies
-/node_modules/
-/yarn.lock
-
-# production
-/dist/
-
-# umi
-/src/.umi

+ 0 - 8
dashboard/.prettierignore

@@ -1,8 +0,0 @@
-**/*.md
-**/*.svg
-**/*.ejs
-**/*.html
-package.json
-.umi
-.umi-production
-.umi-test

+ 0 - 11
dashboard/.prettierrc

@@ -1,11 +0,0 @@
-{
-  "singleQuote": true,
-  "trailingComma": "all",
-  "printWidth": 80,
-  "overrides": [
-    {
-      "files": ".prettierrc",
-      "options": { "parser": "json" }
-    }
-  ]
-}

+ 0 - 10
dashboard/.umirc.ts

@@ -1,10 +0,0 @@
-import { defineConfig } from 'umi';
-
-export default defineConfig({
-  nodeModulesTransform: {
-    type: 'none',
-  },
-  routes: [
-    { path: '/', component: '@/pages/index' },
-  ],
-});

+ 0 - 0
dashboard/mock/.gitkeep


+ 0 - 32
dashboard/package.json

@@ -1,32 +0,0 @@
-{
-  "private": true,
-  "scripts": {
-    "start": "umi dev",
-    "build": "umi build",
-    "postinstall": "umi generate tmp",
-    "prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
-    "test": "umi-test",
-    "test:coverage": "umi-test --coverage"
-  },
-  "gitHooks": {
-    "pre-commit": "lint-staged"
-  },
-  "lint-staged": {
-    "*.{js,jsx,less,md,json}": [
-      "prettier --write"
-    ],
-    "*.ts?(x)": [
-      "prettier --parser=typescript --write"
-    ]
-  },
-  "dependencies": {
-    "@umijs/preset-react": "1.x",
-    "@umijs/test": "^3.2.3",
-    "lint-staged": "^10.0.7",
-    "prettier": "^1.19.1",
-    "react": "^16.12.0",
-    "react-dom": "^16.12.0",
-    "umi": "^3.2.3",
-    "yorkie": "^2.0.0"
-  }
-}

+ 0 - 7
dashboard/src/pages/index.less

@@ -1,7 +0,0 @@
-
-.normal {
-}
-
-.title {
-  background: rgb(121, 242, 157);
-}

+ 0 - 10
dashboard/src/pages/index.tsx

@@ -1,10 +0,0 @@
-import React from 'react';
-import styles from './index.less';
-
-export default () => {
-  return (
-    <div>
-      <h1 className={styles.title}>Page index</h1>
-    </div>
-  );
-}

+ 0 - 25
dashboard/tsconfig.json

@@ -1,25 +0,0 @@
-{
-  "compilerOptions": {
-    "target": "esnext",
-    "module": "esnext",
-    "moduleResolution": "node",
-    "importHelpers": true,
-    "jsx": "react",
-    "esModuleInterop": true,
-    "sourceMap": true,
-    "baseUrl": "./",
-    "strict": true,
-    "paths": {
-      "@/*": ["src/*"],
-      "@@/*": ["src/.umi/*"]
-    },
-    "allowSyntheticDefaultImports": true
-  },
-  "include": [
-    "mock/**/*",
-    "src/**/*",
-    "config/**/*",
-    ".umirc.ts",
-    "typings.d.ts"
-  ]
-}

+ 0 - 8
dashboard/typings.d.ts

@@ -1,8 +0,0 @@
-declare module '*.css';
-declare module '*.less';
-declare module "*.png";
-declare module '*.svg' {
-  export function ReactComponent(props: React.SVGProps<SVGSVGElement>): React.ReactElement
-  const url: string
-  export default url
-}

+ 21 - 0
linux.sh

@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+declare -a folders=(
+    "appdata"
+    "user"
+    "palihtml"    
+    "dicttext"
+    "palicsv"
+    "temp"
+    "log"
+)
+
+for i in "${folders[@]}"
+do
+    mkdir -pv $i
+    sudo chown -R www-data:www-data $i    
+done
+
+exit 0

+ 0 - 3
src/main.rs

@@ -1,3 +0,0 @@
-fn main() {
-    println!("Hello, world!");
-}