Skip to content

Commit

Permalink
Initial commit - scaffolding to start development
Browse files Browse the repository at this point in the history
  • Loading branch information
juzser committed Dec 19, 2019
0 parents commit 028ea70
Show file tree
Hide file tree
Showing 20 changed files with 9,667 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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
32 changes: 32 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
};

// "plugin:vue/recommended",
// "eslint:recommended",
// "prettier/vue",
// "plugin:prettier/recommended"
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.DS_Store
node_modules

# public
dist/*.gz
dist/*.gz
dist/.DS_Store
coverage
docs/.vuepress/dist

# dist
# local env files
.env.local
.env.*.local

# related test files
/tests/e2e/reports
/tests/e2e/videos
/tests/e2e/screenshots

# editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*

# Backups
.BACKUP
.STORAGE
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="0.1.0"></a>

# 0.1.0 (2019-12-19)


20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2019 Sonnh

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Vue Bot UI

> Minimal chat bot UI
3 changes: 3 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

Todo:
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [["@vue/app", { useBuiltIns: false }]]
};
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"]
};
57 changes: 57 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "vue-bot-ui",
"version": "0.1.0",
"description": "Chatbot UI using Vue.js 2",
"author": {
"name": "SonNH",
"email": "[email protected]"
},
"main": "dist/vue-bot-ui.js",
"files": [
"dist/*",
"src/*",
"package.json"
],
"scripts": {
"serve": "vue-cli-service serve",
"build": "BUILD_TYPE=modular vue-cli-service build",
"build-bundle": "vue-cli-service build --target lib --name vue-bot-ui ./src/vue-bot-ui.js",
"lint": "vue-cli-service lint"
},
"keywords": [
"chatbot",
"bot ui",
"vue-bot-ui"
],
"devDependencies": {
"@commitlint/cli": "^7.6.1",
"@commitlint/config-conventional": "^7.6.0",
"@types/jest": "^24.0.11",
"@vue/cli-plugin-babel": "^4.0.0",
"@vue/cli-plugin-eslint": "^4.0.0",
"@vue/cli-plugin-unit-jest": "^4.0.0",
"@vue/cli-service": "^4.0.0",
"@vue/eslint-config-standard": "^4.0.0",
"@vue/test-utils": "1.0.0-beta.29",
"babel-eslint": "^10.0.3",
"bootstrap": "^4.3.1",
"core-js": "^3.3.2",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"pug": "^2.0.4",
"pug-plain-loader": "^1.0.0",
"sass": "^1.19.0",
"sass-loader": "^8.0.0",
"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10"
},
"repository": {
"type": "git",
"url": "https://github.com/JuzSer/vue-bot-ui.git"
},
"bugs": {
"url": "https://github.com/JuzSer/vue-bot-ui/issues"
},
"homepage": "https://github.com/JuzSer/vue-bot-ui#readme",
"license": "MIT"
}
25 changes: 25 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template lang="pug">
#app
img(
alt="Vue Bot UI",
src="./assets/logo.png"
)
VueBotUI
</template>

<script>
export default {
}
</script>

<style lang="scss">
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
// text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Binary file added src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/scss/_app.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins';

@import 'variables';
Empty file added src/assets/scss/_variables.scss
Empty file.
15 changes: 15 additions & 0 deletions src/components/BotUI.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template lang="pug">
.vbotui-board
h2 Hello
</template>
<script>
export default {
name: 'VBotUI',
created () {
// console.log('ok')
}
}
</script>

<style src="../assets/scss/_app.scss" lang="scss"></style>
11 changes: 11 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Vue from 'vue'
import App from './App.vue'
import VueBotUI from './vue-bot-ui'

Vue.config.productionTip = false

Vue.use(VueBotUI)

new Vue({
render: (h) => h(App)
}).$mount('#app')
13 changes: 13 additions & 0 deletions src/vue-bot-ui.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import BotUI from '@/components/BotUI.vue'

const Plugin = {
install (Vue, options) {
Vue.component('VueBotUI', BotUI)

if (options) {
console.log('options', options)
}
}
}

export default Plugin
12 changes: 12 additions & 0 deletions tests/unit/example.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// import { shallowMount } from '@vue/test-utils'
// import HelloWorld from '@/components/HelloWorld.vue'
//
// describe('HelloWorld.vue', () => {
// it('renders props.msg when passed', () => {
// const msg = 'new message'
// const wrapper = shallowMount(HelloWorld, {
// propsData: { msg }
// })
// expect(wrapper.text()).toMatch(msg)
// })
// })
9 changes: 9 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const webpack = require("webpack");
const isDev = process.env.NODE_ENV === "development";

module.exports = {
devServer: {
port: 1901
},
productionSourceMap: false
};
Loading

0 comments on commit 028ea70

Please sign in to comment.