Skip to content

Commit

Permalink
feat: import i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
taosin committed Jun 20, 2020
1 parent 964bf9c commit 629ed41
Show file tree
Hide file tree
Showing 33 changed files with 568 additions and 377 deletions.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified h5/.gitignore
100644 → 100755
Empty file.
10 changes: 10 additions & 0 deletions h5/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": false,
"singleQuote": true,
"jsxSingleQuote": false,
"tabWidth": 2,
"printWidth": 140,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false
}
4 changes: 3 additions & 1 deletion h5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"node-sass": "^4.14.1",
"sass-loader": "^8.0.2",
"vue-grid-layout": "^2.3.7",
"vue-i18n": "^8.18.2",
"vue-template-compiler": "^2.6.10",
"vuedraggable": "^2.23.2"
},
Expand All @@ -40,7 +41,8 @@
"eslint:recommended"
],
"rules": {
"no-console": "off"
"no-console": "off",
"no-debugger": "off"
},
"parserOptions": {
"parser": "babel-eslint"
Expand Down
Empty file modified h5/public/favicon.ico
100644 → 100755
Empty file.
10 changes: 5 additions & 5 deletions h5/public/index.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>水母---Vue代码生成工具</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>Ker---Vue代码生成工具</title>
</head>
<body>
<noscript>
Expand Down
6 changes: 2 additions & 4 deletions h5/src/App.vue
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<template>
<div id="app">
<router-view >
</router-view>
<router-view> </router-view>
</div>
</template>

<script>
export default {
name: 'app',
components: {
}
components: {},
}
</script>
9 changes: 9 additions & 0 deletions h5/src/assets/languages/en-us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"common": {
"save": "save",
"edit": "edit",
"remove": "remove",
"preview": "preview",
"language": "English"
}
}
9 changes: 9 additions & 0 deletions h5/src/assets/languages/zh-cn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"common": {
"save": "保存",
"edit": "编辑",
"remove": "删除",
"preview": "预览",
"language": "中文"
}
}
Empty file modified h5/src/assets/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 0 additions & 58 deletions h5/src/components/HelloWorld.vue

This file was deleted.

52 changes: 0 additions & 52 deletions h5/src/components/dashboard/componentItem.vue

This file was deleted.

93 changes: 0 additions & 93 deletions h5/src/components/dashboard/componentItems.vue

This file was deleted.

17 changes: 0 additions & 17 deletions h5/src/components/dashboard/header.vue

This file was deleted.

86 changes: 86 additions & 0 deletions h5/src/datas/menus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"children": [
{
"title": "表单类",
"name": "form",
"children": [
{
"title": "单选框",
"name": "radio"
},
{
"title": "多选框",
"name": "checkbox"
},
{
"title": "输入框",
"name": "input"
},
{
"title": "选择器",
"name": "select"
},
{
"title": "时间日期选择器",
"name": "datetimepicker"
},
{
"title": "开关",
"name": "switch"
},
{
"title": "滑块",
"name": "slider"
},
{
"title": "评分",
"name": "rate"
},
{
"title": "上传",
"name": "upload"
}
]
},
{
"title": "数据类",
"name": "data",
"children": [
{
"title": "表格",
"name": "table"
}
]
},
{
"title": "通知类",
"name": "notice",
"children": [
{
"title": "警告",
"name": "alert"
}
]
},
{
"title": "导航类",
"name": "navigation",
"children": [
{
"title": "导航菜单",
"name": "menu"
}
]
},
{
"title": "其它",
"name": "others",
"children": [
{
"title": "对话框",
"name": "dialog"
}
]
}
]
}
Loading

0 comments on commit 629ed41

Please sign in to comment.