diff --git a/src/App.vue b/src/App.vue index 5407b48ac7a5c050c45c59eb76d0081cb6d4b5f5..d7a33cb3227e85dc33fd9b5f18a1bc89856028c4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,12 +5,13 @@ import SearchGrade from './components/SearchGrade.vue' import Draw from './components/draw/Draw.vue' import Commit from './components/commit/Commit.vue' import Drag from './components/drag/Drag.vue' +import Visual from './components/visual/index.vue' import { reactive, onBeforeMount,onMounted } from 'vue'; import html2canvas from 'html2canvas'; // state const state = reactive({ - current: '拖拽' + current: 'Visual' }) /** 下载图片 */ @@ -85,6 +86,9 @@ onBeforeMount(() => { else if(data['type'] = 'grag'){ state.current = '拖拽' } + else if(data['type'] = 'Visual'){ + state.current = 'Visual' + } } }) @@ -98,6 +102,7 @@ onBeforeMount(() => { 随机抽奖 csdn分析评论 拼图 + 可视化 2023 编码之旅 截图 @@ -108,6 +113,7 @@ onBeforeMount(() => { + diff --git a/src/components/draw/Draw.vue b/src/components/draw/Draw.vue index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..200528db815581c6c5acf5f389f86fd90081d0bf 100644 --- a/src/components/draw/Draw.vue +++ b/src/components/draw/Draw.vue @@ -0,0 +1,116 @@ + + + diff --git a/src/components/visual/commit/data.js b/src/components/visual/commit/data.js new file mode 100644 index 0000000000000000000000000000000000000000..647ca7207186ca0d63a6e89d0a8ac33b31e1edeb --- /dev/null +++ b/src/components/visual/commit/data.js @@ -0,0 +1,125 @@ +const commitCountJson={ + "2023-04-16": 1, + "2023-07-29": 2, + "2023-06-19": 1, + "2023-08-06": 11, + "2023-05-13": 1, + "2023-10-23": 3, + "2023-05-31": 5, + "2023-05-10": 3, + "2023-04-30": 3, + "2023-04-10": 2, + "2023-08-18": 6, + "2023-05-15": 2, + "2023-07-16": 2, + "2023-08-19": 2, + "2023-06-30": 26, + "2023-06-14": 1, + "2023-10-25": 13, + "2023-10-18": 3, + "2023-07-20": 1, + "2023-07-07": 2, + "2023-08-05": 1, + "2023-07-02": 14, + "2023-10-11": 8, + "2023-07-05": 3, + "2023-12-11": 6, + "2023-10-26": 6, + "2023-10-20": 7, + "2023-12-27": 2, + "2023-11-13": 3, + "2023-10-24": 2, + "2023-10-09": 10, + "2023-09-05": 4, + "2023-07-15": 4, + "2023-12-10": 1, + "2023-12-04": 1, + "2023-06-18": 3, + "2023-04-09": 2, + "2023-04-06": 1, + "2023-06-25": 2, + "2023-07-21": 5, + "2023-03-31": 7, + "2023-12-23": 1, + "2023-07-30": 9, + "2023-01-02": 2, + "2023-11-03": 1, + "2023-03-20": 2, + "2023-02-19": 1, + "2023-09-04": 1, + "2023-10-10": 5, + "2023-07-28": 3, + "2023-09-14": 4, + "2023-06-06": 4, + "2023-05-09": 2, + "2023-10-28": 4, + "2023-07-25": 1, + "2023-07-23": 2, + "2023-04-12": 1, + "2023-11-05": 1, + "2023-10-19": 1, + "2023-08-07": 1, + "2023-09-07": 2, + "2023-07-12": 1, + "2023-06-15": 1, + "2023-12-09": 4, + "2023-07-24": 3, + "2023-07-10": 2, + "2023-12-17": 1, + "2023-01-08": 2, + "2023-02-15": 1, + "2023-02-11": 1, + "2023-08-30": 2, + "2023-10-13": 1, + "2023-11-23": 2, + "2023-09-20": 1, + "2023-06-05": 1, + "2023-09-15": 1, + "2023-09-16": 1, + "2023-04-28": 2, + "2023-07-22": 3, + "2023-11-25": 6, + "2023-08-14": 2, + "2023-07-17": 6, + "2023-04-13": 2, + "2023-10-30": 3, + "2023-07-19": 1, + "2023-07-31": 2, + "2023-02-12": 2, + "2023-08-21": 4, + "2023-09-06": 2, + "2023-07-03": 1, + "2023-07-04": 3, + "2023-12-19": 1, + "2023-05-14": 9, + "2023-02-13": 1, + "2023-10-22": 3, + "2023-07-01": 7, + "2023-06-28": 8, + "2023-10-05": 1, + "2023-08-20": 1, + "2023-07-18": 3, + "2023-10-12": 2, + "2023-11-08": 1, + "2023-06-22": 1, + "2023-11-04": 5, + "2023-10-27": 2, + "2023-06-20": 3, + "2023-10-07": 4, + "2023-08-03": 1, + "2023-04-01": 1, + "2023-12-05": 2, + "2023-11-26": 2 +} + +export const getCommitData=()=>{ + const commitArray=[] + Object.keys(commitCountJson).forEach(key=>{ + commitArray.push({ + date:key, + count:commitCountJson[key] + }) + }) + commitArray.sort((a,b)=>new Date(a.date)-new Date(b.date)) + return commitArray +} \ No newline at end of file diff --git a/src/components/visual/commit/index.vue b/src/components/visual/commit/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..4a9331d82532500fd4ca6d79d94a0fb732104da2 --- /dev/null +++ b/src/components/visual/commit/index.vue @@ -0,0 +1,101 @@ + + \ No newline at end of file diff --git a/src/components/visual/index.vue b/src/components/visual/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..e2629674f53e44ed2b21221569ad7025b60848d5 --- /dev/null +++ b/src/components/visual/index.vue @@ -0,0 +1,17 @@ + + \ No newline at end of file