mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-23 22:30:34 +03:00
fix previous fix
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
> 1%
|
||||||
|
last 2 versions
|
||||||
|
not dead
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
src/demo
|
||||||
|
demo
|
||||||
|
dist
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
env: {
|
||||||
|
node: true
|
||||||
|
},
|
||||||
|
'extends': [
|
||||||
|
'plugin:vue/essential',
|
||||||
|
'eslint:recommended'
|
||||||
|
],
|
||||||
|
parserOptions: {
|
||||||
|
parser: 'babel-eslint'
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
||||||
|
}
|
||||||
|
}
|
||||||
+15
-4
@@ -1,12 +1,23 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules/
|
node_modules
|
||||||
dist/
|
/dist
|
||||||
npm-debug.log
|
|
||||||
yarn-error.log
|
|
||||||
|
# local env files
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
|
||||||
|
# Log files
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
.idea
|
.idea
|
||||||
|
.vscode
|
||||||
*.suo
|
*.suo
|
||||||
*.ntvs*
|
*.ntvs*
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
|
*.sw?
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
arrowParens: 'always',
|
arrowParens: 'avoid',
|
||||||
bracketSpacing: true,
|
bracketSpacing: true,
|
||||||
// "embeddedLanguageFormatting": "auto",
|
// "embeddedLanguageFormatting": "auto",
|
||||||
// "htmlWhitespaceSensitivity": "css",
|
// "htmlWhitespaceSensitivity": "css",
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ The following code showcases a simple usage example in a .vue SFC (Single File C
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import {GGanttChart, GGanttRow} from 'vue-ganttastic'
|
import { GGanttChart, GGanttRow } from 'vue-ganttastic'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
@@ -119,10 +119,10 @@ Pull requests are warmly welcomed, while every major change or proposal ought to
|
|||||||
npm install -g @vue/cli
|
npm install -g @vue/cli
|
||||||
npm install -g @vue/cli-service-global
|
npm install -g @vue/cli-service-global
|
||||||
```
|
```
|
||||||
3. <code>Playground.vue</code> is a dedicated Vue SFC where all Vue-Ganttastic features can be
|
3. <code>App.vue</code> is a dedicated Vue SFC where all Vue-Ganttastic features can be
|
||||||
played around with and tested out. Get it running using:
|
played around with and tested out. Get it running using:
|
||||||
```
|
```
|
||||||
npm run dev
|
npm run serve
|
||||||
```
|
```
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
'@vue/cli-plugin-babel/preset'
|
||||||
|
]
|
||||||
|
}
|
||||||
-11
@@ -1,11 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>vue-ganttastic</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="vue-ganttastic-825301a1"></div>
|
|
||||||
<script src="/dist/index.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Generated
+17611
-5934
File diff suppressed because it is too large
Load Diff
+16
-22
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tenrok/vue-ganttastic",
|
"name": "@tenrok/vue-ganttastic",
|
||||||
"version": "0.10.8",
|
"version": "0.10.9",
|
||||||
"description": "A simple and customizable Gantt chart component for Vue.js",
|
"description": "A simple and customizable Gantt chart component for Vue.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"gantt",
|
"gantt",
|
||||||
@@ -32,37 +32,31 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
"dist/*"
|
"dist"
|
||||||
],
|
],
|
||||||
"main": "./dist/index.js",
|
"main": "dist/vue-ganttastic.common.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/tenrok/vue-ganttastic.git"
|
"url": "git+https://github.com/tenrok/vue-ganttastic.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
"build": "vue-cli-service build --target lib --name vue-ganttastic src/lib.js",
|
||||||
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vue": "^2.5.11"
|
"vue": "^2.6.12"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
|
||||||
"> 1%",
|
|
||||||
"last 2 versions",
|
|
||||||
"not ie <= 8"
|
|
||||||
],
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^6.26.0",
|
"@vue/cli-plugin-babel": "~4.5.0",
|
||||||
"babel-loader": "^7.1.2",
|
"@vue/cli-plugin-eslint": "~4.5.0",
|
||||||
"babel-preset-env": "^1.6.0",
|
"@vue/cli-service": "~4.5.0",
|
||||||
"babel-preset-stage-3": "^6.24.1",
|
"babel-eslint": "^10.1.0",
|
||||||
"cross-env": "^5.0.5",
|
"eslint": "^6.7.2",
|
||||||
"css-loader": "^0.28.7",
|
"eslint-plugin-vue": "^6.2.2",
|
||||||
"file-loader": "^1.1.4",
|
"node-sass": "^4.12.0",
|
||||||
"vue-loader": "^13.0.5",
|
"sass-loader": "^8.0.2",
|
||||||
"vue-template-compiler": "^2.4.4",
|
"vue-template-compiler": "^2.6.11"
|
||||||
"webpack": "^3.6.0",
|
|
||||||
"webpack-dev-server": "^2.9.1"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"moment": "^2.26.0"
|
"moment": "^2.26.0"
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1,17 @@
|
|||||||
|
<!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><%= htmlWebpackPlugin.options.title %></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<noscript>
|
||||||
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
|
</noscript>
|
||||||
|
<div id="app"></div>
|
||||||
|
<!-- built files will be auto injected -->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -40,11 +40,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import GanttasticThemeColors from './GanttasticThemeColors.js'
|
import GanttasticThemeColors from '@/assets/GanttasticThemeColors.js'
|
||||||
import GGanttTimeaxis from './GGanttTimeaxis.vue'
|
import GGanttTimeaxis from '@/components/GGanttTimeaxis.vue'
|
||||||
import GGanttGrid from './GGanttGrid.vue'
|
import GGanttGrid from '@/components/GGanttGrid.vue'
|
||||||
import GGanttRow from './GGanttRow.vue'
|
import GGanttRow from '@/components/GGanttRow.vue'
|
||||||
import GGanttBar from './GGanttBar.vue'
|
import GGanttBar from '@/components/GGanttBar.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GGanttChart',
|
name: 'GGanttChart',
|
||||||
@@ -504,4 +504,4 @@ export default {
|
|||||||
.g-gantt-rows-container {
|
.g-gantt-rows-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import GGanttBar from './GGanttBar.vue'
|
import GGanttBar from '@/components/GGanttBar.vue'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -208,4 +208,4 @@ export default {
|
|||||||
border-bottom: 1px solid #eaeaea;
|
border-bottom: 1px solid #eaeaea;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
<!-- use Playground.vue to play around with the gantt chart components and test out new features -->
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<g-gantt-chart
|
<g-gantt-chart
|
||||||
@@ -35,11 +34,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import GGanttChart from './GGanttChart.vue'
|
import GGanttChart from '@/components/GGanttChart.vue'
|
||||||
import GGanttRow from './GGanttRow.vue'
|
import GGanttRow from '@/components/GGanttRow.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'playground',
|
|
||||||
components: {
|
components: {
|
||||||
GGanttChart,
|
GGanttChart,
|
||||||
GGanttRow,
|
GGanttRow,
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import GGanttChart from '@/components/GGanttChart.vue'
|
||||||
|
import GGanttRow from '@/components/GGanttRow.vue'
|
||||||
|
|
||||||
|
export { GGanttChart, GGanttRow }
|
||||||
+5
-15
@@ -1,18 +1,8 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import GGanttChart from './GGanttChart.vue'
|
import App from './demo/App.vue'
|
||||||
import GGanttRow from './GGanttRow.vue'
|
|
||||||
import Playground from './Playground.vue'
|
|
||||||
|
|
||||||
let uniqId = '#vue-ganttastic-825301a1'
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
if (document.querySelector(uniqId)) {
|
new Vue({
|
||||||
Vue.component('GGanttChart', GGanttChart)
|
render: h => h(App),
|
||||||
Vue.component('GGanttRow', GGanttRow)
|
}).$mount('#app')
|
||||||
|
|
||||||
new Vue({
|
|
||||||
el: uniqId,
|
|
||||||
render: (h) => h(Playground),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export { GGanttRow, GGanttChart }
|
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
module.exports = {
|
||||||
|
publicPath: '',
|
||||||
|
outputDir: process.env.NODE_ENV === 'production' ? 'dist/' : 'demo/',
|
||||||
|
css: { extract: false },
|
||||||
|
productionSourceMap: false,
|
||||||
|
}
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
var path = require('path')
|
|
||||||
var webpack = require('webpack')
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: './src/main.js',
|
|
||||||
output: {
|
|
||||||
path: path.resolve(__dirname, './dist'),
|
|
||||||
publicPath: '/dist/',
|
|
||||||
filename: 'index.js',
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.css$/,
|
|
||||||
use: ['vue-style-loader', 'css-loader'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.vue$/,
|
|
||||||
loader: 'vue-loader',
|
|
||||||
options: {
|
|
||||||
loaders: {},
|
|
||||||
// other vue-loader options go here
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.js$/,
|
|
||||||
loader: 'babel-loader',
|
|
||||||
exclude: /node_modules/,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(png|jpg|gif|svg)$/,
|
|
||||||
loader: 'file-loader',
|
|
||||||
options: {
|
|
||||||
name: '[name].[ext]?[hash]',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
alias: {
|
|
||||||
vue$: 'vue/dist/vue.esm.js',
|
|
||||||
},
|
|
||||||
extensions: ['*', '.js', '.vue', '.json'],
|
|
||||||
},
|
|
||||||
devServer: {
|
|
||||||
historyApiFallback: true,
|
|
||||||
noInfo: true,
|
|
||||||
overlay: true,
|
|
||||||
},
|
|
||||||
performance: {
|
|
||||||
hints: false,
|
|
||||||
},
|
|
||||||
devtool: '#eval-source-map',
|
|
||||||
}
|
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'production') {
|
|
||||||
module.exports.devtool = '#source-map'
|
|
||||||
// http://vue-loader.vuejs.org/en/workflow/production.html
|
|
||||||
module.exports.plugins = (module.exports.plugins || []).concat([
|
|
||||||
new webpack.DefinePlugin({
|
|
||||||
'process.env': {
|
|
||||||
NODE_ENV: '"production"',
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
|
||||||
sourceMap: false,
|
|
||||||
compress: {
|
|
||||||
warnings: false,
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
new webpack.LoaderOptionsPlugin({
|
|
||||||
minimize: true,
|
|
||||||
}),
|
|
||||||
])
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user