mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-05-17 04:29:36 +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
|
||||
node_modules/
|
||||
dist/
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
|
||||
# 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
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
arrowParens: 'always',
|
||||
arrowParens: 'avoid',
|
||||
bracketSpacing: true,
|
||||
// "embeddedLanguageFormatting": "auto",
|
||||
// "htmlWhitespaceSensitivity": "css",
|
||||
|
||||
@@ -59,7 +59,7 @@ The following code showcases a simple usage example in a .vue SFC (Single File C
|
||||
|
||||
<script>
|
||||
|
||||
import {GGanttChart, GGanttRow} from 'vue-ganttastic'
|
||||
import { GGanttChart, GGanttRow } from 'vue-ganttastic'
|
||||
|
||||
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-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:
|
||||
```
|
||||
npm run dev
|
||||
npm run serve
|
||||
```
|
||||
|
||||
## 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
+17612
-5935
File diff suppressed because it is too large
Load Diff
+16
-22
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tenrok/vue-ganttastic",
|
||||
"version": "0.10.8",
|
||||
"version": "0.10.9",
|
||||
"description": "A simple and customizable Gantt chart component for Vue.js",
|
||||
"keywords": [
|
||||
"gantt",
|
||||
@@ -32,37 +32,31 @@
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"dist/*"
|
||||
"dist"
|
||||
],
|
||||
"main": "./dist/index.js",
|
||||
"main": "dist/vue-ganttastic.common.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tenrok/vue-ganttastic.git"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build --target lib --name vue-ganttastic src/lib.js",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^2.5.11"
|
||||
"vue": "^2.6.12"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions",
|
||||
"not ie <= 8"
|
||||
],
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-loader": "^7.1.2",
|
||||
"babel-preset-env": "^1.6.0",
|
||||
"babel-preset-stage-3": "^6.24.1",
|
||||
"cross-env": "^5.0.5",
|
||||
"css-loader": "^0.28.7",
|
||||
"file-loader": "^1.1.4",
|
||||
"vue-loader": "^13.0.5",
|
||||
"vue-template-compiler": "^2.4.4",
|
||||
"webpack": "^3.6.0",
|
||||
"webpack-dev-server": "^2.9.1"
|
||||
"@vue/cli-plugin-babel": "~4.5.0",
|
||||
"@vue/cli-plugin-eslint": "~4.5.0",
|
||||
"@vue/cli-service": "~4.5.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"node-sass": "^4.12.0",
|
||||
"sass-loader": "^8.0.2",
|
||||
"vue-template-compiler": "^2.6.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"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>
|
||||
import moment from 'moment'
|
||||
import GanttasticThemeColors from './GanttasticThemeColors.js'
|
||||
import GGanttTimeaxis from './GGanttTimeaxis.vue'
|
||||
import GGanttGrid from './GGanttGrid.vue'
|
||||
import GGanttRow from './GGanttRow.vue'
|
||||
import GGanttBar from './GGanttBar.vue'
|
||||
import GanttasticThemeColors from '@/assets/GanttasticThemeColors.js'
|
||||
import GGanttTimeaxis from '@/components/GGanttTimeaxis.vue'
|
||||
import GGanttGrid from '@/components/GGanttGrid.vue'
|
||||
import GGanttRow from '@/components/GGanttRow.vue'
|
||||
import GGanttBar from '@/components/GGanttBar.vue'
|
||||
|
||||
export default {
|
||||
name: 'GGanttChart',
|
||||
@@ -504,4 +504,4 @@ export default {
|
||||
.g-gantt-rows-container {
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@@ -37,7 +37,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import GGanttBar from './GGanttBar.vue'
|
||||
import GGanttBar from '@/components/GGanttBar.vue'
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
@@ -208,4 +208,4 @@ export default {
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
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>
|
||||
<div>
|
||||
<g-gantt-chart
|
||||
@@ -35,11 +34,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import GGanttChart from './GGanttChart.vue'
|
||||
import GGanttRow from './GGanttRow.vue'
|
||||
import GGanttChart from '@/components/GGanttChart.vue'
|
||||
import GGanttRow from '@/components/GGanttRow.vue'
|
||||
|
||||
export default {
|
||||
name: 'playground',
|
||||
components: {
|
||||
GGanttChart,
|
||||
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 GGanttChart from './GGanttChart.vue'
|
||||
import GGanttRow from './GGanttRow.vue'
|
||||
import Playground from './Playground.vue'
|
||||
import App from './demo/App.vue'
|
||||
|
||||
let uniqId = '#vue-ganttastic-825301a1'
|
||||
Vue.config.productionTip = false
|
||||
|
||||
if (document.querySelector(uniqId)) {
|
||||
Vue.component('GGanttChart', GGanttChart)
|
||||
Vue.component('GGanttRow', GGanttRow)
|
||||
|
||||
new Vue({
|
||||
el: uniqId,
|
||||
render: (h) => h(Playground),
|
||||
})
|
||||
}
|
||||
|
||||
export { GGanttRow, GGanttChart }
|
||||
new Vue({
|
||||
render: h => h(App),
|
||||
}).$mount('#app')
|
||||
|
||||
@@ -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