Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
27b6f00
update 2019-09-07
jiaming743 Sep 7, 2019
cc34140
Merge branch 'master' of https://github.com/jiaming743/DataV_Guide
jiaming743 Sep 10, 2019
dcc80b8
update 2019-09-11
jiaming743 Sep 11, 2019
0e8a0e8
update 2019-09-11
jiaming743 Sep 11, 2019
d1ee177
update 2019-09-19
jiaming743 Sep 19, 2019
6cd0a84
update 2019-09-24
jiaming743 Sep 24, 2019
cb93ca7
update icon url
Oct 22, 2019
59f4d95
update repo url
Oct 22, 2019
73718bb
update repo url
Oct 22, 2019
9924dc5
update repo url
Oct 22, 2019
772332d
update license
Oct 22, 2019
748f09c
Fix </dir> tag <div> has no matching end tag.
net592 Oct 23, 2019
a74c50b
Merge pull request #3 from net592/patch-2
jiaming743 Oct 23, 2019
fc6dc85
update 2019-10-24
jiaming743 Oct 24, 2019
13191a4
update 2019-10-24
jiaming743 Oct 25, 2019
1c30a1e
modify alt
jiaming743 Nov 8, 2019
219a1e6
add growing io sdk insert
jiaming743 Nov 8, 2019
80e9c46
update readme
jiaming743 Nov 8, 2019
9e658ce
add baidu verify
jiaming743 Nov 8, 2019
5e0983f
add new keywords
jiaming743 Nov 8, 2019
ff7bf27
update index
jiaming743 Nov 8, 2019
d938296
add new cmp for auto turn react home page
jiaming743 Nov 8, 2019
e173db5
add react version nav
jiaming743 Nov 8, 2019
9a4f825
update umd
jiaming743 Nov 8, 2019
fd9cd7a
update 2019-11-12
jiaming743 Nov 12, 2019
9132024
update icon
Nov 24, 2019
20482c6
update 2019-11-27
jiaming743 Nov 27, 2019
8d586ec
update 2019-11-30
jiaming743 Nov 30, 2019
dd51767
update 2019-11-30
Nov 30, 2019
7951e91
update 2019-12-01
Dec 1, 2019
49e7a8b
update 2019-12-03
Dec 3, 2019
aedafb1
update 2019-12-06
jiaming743 Dec 6, 2019
e42627a
update 2019-12-25
jiaming743 Dec 25, 2019
8d677ce
update 2019-12-25
jiaming743 Dec 25, 2019
fb9dfc9
2020-01-04
jiaming743 Jan 4, 2020
09c9e63
update 2020-01-05
jiaming743 Jan 5, 2020
64d3bdc
update
jiaming743 Jan 8, 2020
fb8885a
update 2020-01-10
jiaming743 Jan 10, 2020
02f8773
add update demo
jiaming743 Jan 10, 2020
5028243
update 2020-01-16
jiaming743 Jan 16, 2020
1d377c1
update 2020-03-07
jiaming743 Mar 7, 2020
28b84d2
update 2020-03-08
jiaming743 Mar 8, 2020
a4fae53
update 2020-03-11
jiaming743 Mar 11, 2020
28cc442
update 2020-03-11
jiaming743 Mar 11, 2020
551b404
update 2020-03-11
jiaming743 Mar 11, 2020
2b15dd5
Bug Fixes:#59
wzx-3015 Mar 20, 2020
37ca619
update 2020-04-25
jiaming743 Apr 25, 2020
ea0da6d
Merge branch 'master' of https://github.com/DataV-Team/datav.jiamingh…
jiaming743 Apr 25, 2020
cb1fc2d
update 2020-05-03
jiaming743 May 3, 2020
d9c305e
update 2020-05-03
jiaming743 May 3, 2020
0f1ebe5
update 2020-05-06
jiaming743 May 6, 2020
11258fa
update 2020-05-06
jiaming743 May 6, 2020
8db66a1
update 2020-05-06
jiaming743 May 6, 2020
a323855
添加关键字
jiaming743 May 6, 2020
69f14aa
update 2020-05-25
jiaming743 May 25, 2020
1b48b94
update 2020-06-10
jiaming743 Jun 10, 2020
bc2a2f3
update 2020-06-16
jiaming743 Jun 16, 2020
5b2aa1b
update 2020-07-02
jiaming743 Jul 2, 2020
d58ebb2
update 2020-07-03
jiaming743 Jul 3, 2020
98e1a79
update 2020-08-05
jiaming743 Aug 5, 2020
5468a14
update 2020-08-05
jiaming743 Aug 5, 2020
33d19bb
update 2020-08-19
jiaming743 Aug 19, 2020
eda1663
update 2020-09-20
jiaming743 Aug 20, 2020
dbb6ca5
update 2020-08-25
jiaming743 Aug 25, 2020
68006c7
update 2020-08-26
jiaming743 Aug 26, 2020
80f6dcf
update 2020-09-09
jiaming743 Sep 9, 2020
49b77ce
docs: add vue3 & react doc link
jiaming743 Jan 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018-present, JiaMing
Copyright (c) 2018-present, DataV-Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center"><a href="http://datav.jiaminghi.com">datav.jiaminghi.com</a></h1>

<p align="center">
<a href="https://github.com/jiaming743/datav.jiaminghi.com/blob/master/LICENSE"><img src="https://img.shields.io/github/license/jiaming743/datav.jiaminghi.com.svg" alt="LICENSE" /> </a>
<a href="https://github.com/DataV-Team/datav.jiaminghi.com/blob/master/LICENSE"><img src="https://img.shields.io/github/license/DataV-Team/datav.jiaminghi.com.svg" alt="LICENSE" />
</p>

### Project setup
Expand All @@ -22,4 +22,4 @@ yarn dev
yarn build
```

[Datav](https://github.com/jiaming743/datav)
[Datav](https://github.com/DataV-Team/Datav)
2 changes: 1 addition & 1 deletion demo/construction-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"@jiaminghi/data-view": "^2.3.3",
"@jiaminghi/data-view": "^2.4.4",
"less": "^3.9.0",
"less-loader": "^5.0.0",
"vue": "^2.6.10"
Expand Down
2 changes: 1 addition & 1 deletion demo/construction-data/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<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>施工养护综合数据</title>
<title>DATAV-DEMO</title>
</head>
<body>
<noscript>
Expand Down
16 changes: 12 additions & 4 deletions demo/construction-data/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,13 @@
dependencies:
regenerator-runtime "^0.13.2"

"@babel/runtime@^7.5.5":
version "7.6.0"
resolved "https://registry.npm.taobao.org/@babel/runtime/download/@babel/runtime-7.6.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.6.0.tgz#4fc1d642a9fd0299754e8b5de62c631cf5568205"
integrity sha1-T8HWQqn9Apl1Totd5ixjHPVWggU=
dependencies:
regenerator-runtime "^0.13.2"

"@babel/template@^7.1.0", "@babel/template@^7.4.4":
version "7.4.4"
resolved "https://registry.npm.taobao.org/@babel/template/download/@babel/template-7.4.4.tgz#f4b88d1225689a08f5bc3a17483545be9e4ed237"
Expand Down Expand Up @@ -753,11 +760,12 @@
dependencies:
"@babel/polyfill" "^7.4.4"

"@jiaminghi/data-view@^2.3.3":
version "2.3.3"
resolved "https://registry.yarnpkg.com/@jiaminghi/data-view/-/data-view-2.3.3.tgz#712ac5c21a7b69384baa577633f6e2e4b5565a5a"
integrity sha512-GMaCRNrpVYTbQEZZgIi7cZpJVumDSy7bwC9pPofnunzY9N0UolivM4pCi2tDHJRp3VT0LUvaBi0oTTEohHbB+Q==
"@jiaminghi/data-view@^2.4.4":
version "2.4.4"
resolved "https://registry.npm.taobao.org/@jiaminghi/data-view/download/@jiaminghi/data-view-2.4.4.tgz#b7c7fb45584d4639b6f08ba7397da23c8520a70a"
integrity sha1-t8f7RVhNRjm28IunOX2iPIUgpwo=
dependencies:
"@babel/runtime" "^7.5.5"
"@jiaminghi/charts" "*"

"@jiaminghi/transition@*":
Expand Down
4 changes: 2 additions & 2 deletions demo/electronic-file/src/components/datav/CenterCmp.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<dir class="center-cmp">
<div class="center-cmp">
<div class="cc-header">
<dv-decoration-1 style="width:200px;height:50px;" />
<div>机电设备总数</div>
Expand Down Expand Up @@ -37,7 +37,7 @@

<LabelTag :config="labelConfig" />
</div>
</dir>
</div>
</template>

<script>
Expand Down
56 changes: 49 additions & 7 deletions deploy/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { fileForEach } = require('@jiaminghi/fs')
const { fileForEach, readFile, writeFile } = require('@jiaminghi/fs')
const Client = require('ftp')
const print = require('./plugin/print')
const { emptyDir, put, mkDir } = require('./plugin/ftp')
Expand Down Expand Up @@ -66,6 +66,34 @@ ftp.on('error', foo => {
print.tip('FTP error')
})

const GrowingIO_SDK = `
<!-- GrowingIO Analytics code version 2.1 -->
<!-- Copyright 2015-2018 GrowingIO, Inc. More info available at http://www.growingio.com -->
<script type='text/javascript'>
!function(e,t,n,g,i){e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},n=t.createElement("script"),tag=t.getElementsByTagName("script")[0],n.async=1,n.src=('https:'==document.location.protocol?'https://':'http://')+g,tag.parentNode.insertBefore(n,tag)}(window,document,"script","assets.giocdn.com/2.1/gio.js","gio");
gio('init','8c2b1ac53bbd18d5', {});
gio('send');
</script>
<!-- End GrowingIO Analytics code version: 2.1 -->
`

async function addGrowingIOSDK () {
const indexPagePath = DIST_PATH + '/index.html'

let indexPage = await readFile(indexPagePath)

if (!indexPage) return false

if (indexPage.indexOf(GrowingIO_SDK) !== -1) return true

const addedSDKHead = indexPage.match(/<head>(\s|\S)*<\/head>/)[0]
.replace('</head>', `${GrowingIO_SDK}\n </head>`)

indexPage = indexPage.replace(/<head>(\s|\S)*<\/head>/, addedSDKHead)

return writeFile(indexPagePath, indexPage)
}

const { host, user, pass } = config || getNodeParams()

if (!host || !user || !pass) {
Expand All @@ -74,10 +102,24 @@ if (!host || !user || !pass) {
return false
}

print.tip('Start Upload!')
try {
(async function () {
print.tip('Start add Growing IO SDK!')

const addGIOSDK = await addGrowingIOSDK()

ftp.connect({
host,
user,
password: pass
})
if (!addGIOSDK) return print.error('Add Growing IO SDK fail!')

print.tip('Add Growing IO SDK success!')

print.tip('Start Upload!')

ftp.connect({
host,
user,
password: pass
})
})()
} catch {
print.error('Deploy Fail!')
}
17 changes: 6 additions & 11 deletions docs/.vuepress/components/dev.vue
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
<template>
<div id="dev-container">
<dv-scroll-board :config="config" class="dev" style="width: 500px;height:200px" />
</div>
</template>

<script>

export default {
name: 'dev',
data () {
return {
config: {
header: ['列1', '列2', '列3'],
data: [
]
}
}
return {}
},
created () {

methods: {
},
async mounted () {
}
}
</script>

<style lang="less">
#dev-container {
width: 100%;
height: 300px;
height: 600px;
box-shadow: 0 0 3px green;
display: flex;
justify-content: center;
Expand Down
27 changes: 27 additions & 0 deletions docs/.vuepress/components/reactPageBtn.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<span class="react-page-btn">
(<span class="green" @click="turnToReactPage">React版<OutboundLink /></span>)
</span>
</template>

<script>
export default {
name: 'ReactPageBtn',
methods: {
turnToReactPage () {
const { pathname } = location

window.open(`http://datav-react.jiaminghi.com${pathname}`)
}
}
}
</script>

<style lang="less">
.react-page-btn .green {
color: #3eaf7c;
cursor: pointer;
font-weight: 500;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
</style>
147 changes: 58 additions & 89 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,104 +1,73 @@
module.exports = {
title: 'Datav',
description: 'Just playing around',
title: "DataV",
description: "Vue 大屏数据展示组件库",
head: [
['link', { rel: 'icon', href: '/favicon.ico' }]
["meta", { name: "keywords", content: "datav,data,bi,开源,免费,大屏" }],
["link", { rel: "icon", href: "/favicon.ico" }],
],
host: 'localhost',
host: "localhost",
port: 5000,
locales: {
'/': {
lang: 'zh-CN',
title: 'DataV',
description: 'Vue 大屏数据展示组件库'
},
'/EN/': {
lang: 'en-US',
title: 'DataV',
description: 'Vue large screen data display component library'
}
},
themeConfig: {
locales: {
'/': {
selectText: '选择语言',
label: '简体中文',
nav: [
{
text: '指南',
link: '/guide/'
},
nav: [
{
text: "指南",
link: "/guide/",
},
{
text: "Vue3 & React版本",
items: [
{
text: '支持',
link: '/support/'
text: "Vue3版本",
link: "https://datav-vue3.jiaminghi.com/",
},
{
text: 'Demo',
link: '/demo/'
text: "React版本",
link: "http://datav-react.jiaminghi.com/",
},
{
text: 'GitHub',
items: [
{
text: '项目源码仓库',
link: 'https://github.com/jiaming743/datav'
},
{
text: '文档及Demo源码仓库',
link: 'https://github.com/jiaming743/datav.jiaminghi.com'
}
]
}
],
sidebar: {
'/guide/': [
'',
'fullScreenContainer',
'loading',
'borderBox',
'decoration',
'charts',
'activeRingChart',
'capsuleChart',
'waterLevelPond',
'percentPond',
'flylineChart',
'conicalColumnChart',
'digitalFlop',
'scrollBoard',
'scrollRankingBoard'
],
'/dev/': ['']
}
},
'/EN/': {
selectText: 'Languages',
label: 'English',
nav: [
{
text: "支持",
link: "/support/",
},
{
text: "Demo",
link: "/demo/",
},
{
text: "GitHub",
items: [
{
text: 'Guide',
link: '/guide/'
text: "项目源码仓库",
link: "https://github.com/DataV-Team/Datav",
},
{
text: 'GitHub',
items: [
{
text: '项目源码仓库',
link: 'https://github.com/jiaming743/datav'
},
{
text: '文档及Demo源码仓库',
link: 'https://github.com/jiaming743/datav.jiaminghi.com'
}
]
}
text: "文档及Demo源码仓库",
link: "https://github.com/DataV-Team/datav.jiaminghi.com",
},
],
sidebar: {
'/EN/guide/': [
''
]
}
}
}
}
}
},
],
sidebar: {
"/guide/": [
"",
"fullScreenContainer",
"loading",
"borderBox",
"decoration",
"charts",
"activeRingChart",
"capsuleChart",
"waterLevelPond",
"percentPond",
"flylineChart",
"flylineChartEnhanced",
"conicalColumnChart",
"digitalFlop",
"scrollBoard",
"scrollRankingBoard",
],
"/dev/": [""],
},
},
};
1 change: 1 addition & 0 deletions docs/.vuepress/public/baidu_verify_cQ2lJRe4pj.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cQ2lJRe4pj
Binary file modified docs/.vuepress/public/favicon.ico
100644 → 100755
Binary file not shown.
Loading