-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from GuoXiCheng/dev-c
update
- Loading branch information
Showing
11 changed files
with
158 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
## 未发布 | ||
|
||
### 修改 | ||
|
||
- 解决加载的配置文件包含 Unicode 编码时未转换为中文的问题 | ||
|
||
## v3.0.0 - 2024.09.27 | ||
|
||
### 新增 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var _hmt = _hmt || []; | ||
(function () { | ||
var hm = document.createElement("script"); | ||
hm.src = "https://hm.baidu.com/hm.js?d3d747ec2508d20c876d4d06e9dbd248"; | ||
var s = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(hm, s); | ||
})(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div>配置版本号: {{ configVersion }}</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { computed } from "vue"; | ||
import CryptoJS from "crypto-js"; | ||
const props = defineProps<{ | ||
jsonConfig: any; | ||
}>(); | ||
const configVersion = computed(() => md5(JSON.stringify(props.jsonConfig))); | ||
function md5(input: string) { | ||
return CryptoJS.MD5(CryptoJS.enc.Utf8.parse(input)).toString(CryptoJS.enc.Hex); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template> | ||
<div> | ||
<el-container> | ||
<el-header><Header :json-config="jsonConfig" /></el-header> | ||
<el-main> | ||
<el-row> | ||
<el-col :span="12"><LeftForm :json-config="jsonConfig" /></el-col> | ||
<el-col :span="12"><RightCode :json-config="jsonConfig" /></el-col> | ||
</el-row> | ||
</el-main> | ||
</el-container> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { onMounted, ref } from "vue"; | ||
import LeftForm from "./LeftForm.vue"; | ||
import RightCode from "./RightCode.vue"; | ||
import Header from "./Header.vue"; | ||
import jsyaml from "js-yaml"; | ||
const jsonConfig = ref<any>(null); | ||
onMounted(async () => { | ||
const response = await fetch("https://skip.guoxicheng.top/skip_config_v3.yaml"); | ||
const skipYamlConfig = await response.text(); | ||
jsonConfig.value = jsyaml.load(skipYamlConfig); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<div> | ||
<el-collapse v-model="activeNames" @change="handleChange"> | ||
<template v-for="item in props.jsonConfig"> | ||
<el-collapse-item :title="item.appName" :name="item.packageName"> | ||
<!-- <div v-for="content in item.content">{{ content }}</div> --> | ||
</el-collapse-item> | ||
</template> | ||
</el-collapse> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
const activeNames = ref(["1"]); | ||
const handleChange = (val: string[]) => { | ||
console.log(val); | ||
}; | ||
const props = defineProps<{ | ||
jsonConfig: any; | ||
}>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<div> | ||
<code-mirror v-model="code" :extensions="extensions" class="z-0" /> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import CodeMirror from "vue-codemirror6"; | ||
import { yaml } from "@codemirror/lang-yaml"; | ||
import { oneDark } from "@codemirror/theme-one-dark"; | ||
import { computed } from "vue"; | ||
import jsyaml from "js-yaml"; | ||
const extensions = [yaml(), oneDark]; | ||
const props = defineProps<{ | ||
jsonConfig: any; | ||
}>(); | ||
const code = computed(() => { | ||
return jsyaml.dump(props.jsonConfig); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
layout: false | ||
--- | ||
|
||
<script setup> | ||
import Home from './Home.vue' | ||
</script> | ||
|
||
<Home /> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters