forked from JakHuang/form-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
11,721 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
> 1% | ||
last 2 versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true | ||
}, | ||
'extends': [ | ||
'plugin:vue/essential', | ||
'eslint:recommended' | ||
], | ||
rules: { | ||
'no-console': 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'vue/no-unused-components': 0, | ||
'no-unused-vars': 0 | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "form-generator", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint" | ||
}, | ||
"dependencies": { | ||
"@babel/parser": "^7.7.4", | ||
"clipboard": "^2.0.4", | ||
"core-js": "^3.4.3", | ||
"file-saver": "^2.0.2", | ||
"vuedraggable": "^2.23.2" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "^4.1.0", | ||
"@vue/cli-plugin-eslint": "^4.1.0", | ||
"@vue/cli-service": "^4.1.0", | ||
"babel-eslint": "^10.0.3", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"sass": "^1.23.7", | ||
"sass-loader": "^8.0.0", | ||
"svg-sprite-loader": "^4.1.6", | ||
"vue-template-compiler": "^2.6.10" | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh"> | ||
|
||
<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>form-generator</title> | ||
<style> | ||
.pre-loader { | ||
position: absolute; | ||
top: calc(50% - 32px); | ||
left: calc(50% - 32px); | ||
width: 64px; | ||
height: 64px; | ||
border-radius: 50%; | ||
perspective: 800px; | ||
} | ||
.pre-loader .inner { | ||
position: absolute; | ||
box-sizing: border-box; | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 50%; | ||
} | ||
.pre-loader .inner.one { | ||
left: 0%; | ||
top: 0%; | ||
-webkit-animation: rotate-one 1s linear infinite; | ||
animation: rotate-one 1s linear infinite; | ||
border-bottom: 3px solid #bc9048; | ||
} | ||
.pre-loader .inner.two { | ||
right: 0%; | ||
top: 0%; | ||
-webkit-animation: rotate-two 1s linear infinite; | ||
animation: rotate-two 1s linear infinite; | ||
border-right: 3px solid #74aeff; | ||
} | ||
.pre-loader .inner.three { | ||
right: 0%; | ||
bottom: 0%; | ||
-webkit-animation: rotate-three 1s linear infinite; | ||
animation: rotate-three 1s linear infinite; | ||
border-top: 3px solid #caef74; | ||
} | ||
@keyframes rotate-one { | ||
0% { | ||
-webkit-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg); | ||
transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg); | ||
} | ||
100% { | ||
-webkit-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg); | ||
transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg); | ||
} | ||
} | ||
@keyframes rotate-two { | ||
0% { | ||
-webkit-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg); | ||
transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg); | ||
} | ||
100% { | ||
-webkit-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg); | ||
transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg); | ||
} | ||
} | ||
@keyframes rotate-three { | ||
0% { | ||
-webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg); | ||
transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg); | ||
} | ||
100% { | ||
-webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg); | ||
transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg); | ||
} | ||
} | ||
</style> | ||
<link href="https://cdn.bootcss.com/element-ui/2.12.0/theme-chalk/index.css" rel="stylesheet"> | ||
<link href="https://cdn.bootcss.com/monaco-editor/0.18.0/min/vs/editor/editor.main.css" rel="stylesheet"> | ||
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script> | ||
<script src="https://cdn.bootcss.com/vue-router/3.1.3/vue-router.min.js"></script> | ||
<script src="https://cdn.bootcss.com/axios/0.19.0/axios.min.js"></script> | ||
<script src="https://cdn.bootcss.com/element-ui/2.12.0/index.js"></script> | ||
</head> | ||
|
||
<body> | ||
<noscript> | ||
<strong>抱歉,javascript被禁用,请开启后重试。</strong> | ||
</noscript> | ||
<div id="app"></div> | ||
<div class="pre-loader" id="pre-loader"> | ||
<div class="inner one"></div> | ||
<div class="inner two"></div> | ||
<div class="inner three"></div> | ||
</div> | ||
<script> var require = { paths: { 'vs': 'https://cdn.bootcss.com/monaco-editor/0.18.0/min/vs' }};</script> | ||
<script src="https://cdn.bootcss.com/js-beautify/1.10.2/beautifier.min.js"></script> | ||
<script src="https://cdn.bootcss.com/monaco-editor/0.18.0/min/vs/loader.js"></script> | ||
<script src="https://cdn.bootcss.com/monaco-editor/0.18.0/min/vs/editor/editor.main.nls.js"></script> | ||
<script src="https://cdn.bootcss.com/monaco-editor/0.18.0/min/vs/editor/editor.main.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh"> | ||
<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>form-generator-preview</title> | ||
<link href="https://cdn.bootcss.com/element-ui/2.12.0/theme-chalk/index.css" rel="stylesheet"> | ||
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script> | ||
<script src="https://cdn.bootcss.com/vue-router/3.1.3/vue-router.min.js"></script> | ||
<script src="https://cdn.bootcss.com/axios/0.19.0/axios.min.js"></script> | ||
<script src="https://cdn.bootcss.com/element-ui/2.12.0/index.js"></script> | ||
<style> | ||
body{ | ||
margin: 0; | ||
padding: 0; | ||
overflow-x: hidden; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-font-smoothing: antialiased; | ||
text-rendering: optimizeLegibility; | ||
height: calc(100vh - 33px); | ||
padding: 12px; | ||
box-sizing: border-box; | ||
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; | ||
} | ||
input, textarea{ | ||
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong>抱歉,javascript被禁用,请开启后重试。</strong> | ||
</noscript> | ||
<div id="previewApp"></div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<template> | ||
<div v-if="isExternal" :style="styleExternalIcon" class="svg-external-icon svg-icon" v-on="$listeners" /> | ||
<svg v-else :class="svgClass" aria-hidden="true" v-on="$listeners"> | ||
<use :xlink:href="iconName" /> | ||
</svg> | ||
</template> | ||
|
||
<script> | ||
// doc: https://panjiachen.github.io/vue-element-admin-site/feature/component/svg-icon.html#usage | ||
function isExternal(path) { | ||
return /^(https?:|mailto:|tel:)/.test(path) | ||
} | ||
export default { | ||
name: 'SvgIcon', | ||
props: { | ||
iconClass: { | ||
type: String, | ||
required: true | ||
}, | ||
className: { | ||
type: String, | ||
default: '' | ||
} | ||
}, | ||
computed: { | ||
isExternal() { | ||
return isExternal(this.iconClass) | ||
}, | ||
iconName() { | ||
return `#icon-${this.iconClass}` | ||
}, | ||
svgClass() { | ||
if (this.className) { | ||
return 'svg-icon ' + this.className | ||
} else { | ||
return 'svg-icon' | ||
} | ||
}, | ||
styleExternalIcon() { | ||
return { | ||
mask: `url(${this.iconClass}) no-repeat 50% 50%`, | ||
'-webkit-mask': `url(${this.iconClass}) no-repeat 50% 50%` | ||
} | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.svg-icon { | ||
width: 1em; | ||
height: 1em; | ||
vertical-align: -0.15em; | ||
fill: currentColor; | ||
overflow: hidden; | ||
} | ||
.svg-external-icon { | ||
background-color: currentColor; | ||
mask-size: cover!important; | ||
display: inline-block; | ||
} | ||
</style> |
Oops, something went wrong.