vue dependency update #788

This commit is contained in:
cutls 2022-12-07 23:22:36 +09:00
parent 12163aaa3d
commit 4ef964f539
2 changed files with 297 additions and 294 deletions

View File

@ -1,9 +1,12 @@
//設定(setting.html)で読む //設定(setting.html)で読む
var envView = new Vue({ Vue.createApp({
el: '#envView', data() {
data: { config: envConstruction }, return {
config: envConstruction
}
},
methods: { methods: {
complete: function(i, val) { complete: function (i, val) {
var ls = envView.config[i] var ls = envView.config[i]
let header = ls.text.head let header = ls.text.head
if (!ls.data) { if (!ls.data) {
@ -33,12 +36,11 @@ var envView = new Vue({
return true return true
}, },
}, },
}) }).mount('#envView')
var tlView = new Vue({ Vue.createApp({
el: '#tlView', data() { return { config: tlConstruction } },
data: { config: tlConstruction },
methods: { methods: {
complete: function(i, val) { complete: function (i, val) {
var ls = tlView.config[i] var ls = tlView.config[i]
let header = ls.text.head let header = ls.text.head
if (val) { if (val) {
@ -59,16 +61,17 @@ var tlView = new Vue({
return true return true
}, },
}, },
}) }).mount('#tlView')
var postView = new Vue({ Vue.createApp({
el: '#postView', data() {
data: { return {
config: postConstruction, config: postConstruction,
kirishima: localStorage.getItem('kirishima'), kirishima: localStorage.getItem('kirishima'),
quoters: localStorage.getItem('quoters'), quoters: localStorage.getItem('quoters'),
}
}, },
methods: { methods: {
complete: function(i, val) { complete: function (i, val) {
var ls = postView.config[i] var ls = postView.config[i]
let header = ls.text.head let header = ls.text.head
if (val) { if (val) {
@ -90,8 +93,8 @@ var postView = new Vue({
return true return true
}, },
}, },
}) }).mount('#postView')
//設定ボタン押した。 //設定ボタン押した。
function settings() { function settings() {
var fontd = $('#font').val() var fontd = $('#font').val()
if (fontd) { if (fontd) {
@ -225,7 +228,7 @@ function climute() {
return return
} }
var templete var templete
Object.keys(obj).forEach(function(key) { Object.keys(obj).forEach(function (key) {
var cli = obj[key] var cli = obj[key]
var list = key * 1 + 1 var list = key * 1 + 1
templete = templete =
@ -651,7 +654,7 @@ function ctLoad() {
function ctLoadCore(args) { function ctLoadCore(args) {
var template = '' var template = ''
var editTemplate = '' var editTemplate = ''
Object.keys(args).forEach(function(key) { Object.keys(args).forEach(function (key) {
var theme = args[key] var theme = args[key]
var themeid = theme.id var themeid = theme.id
template = template + `<option value="${themeid}">${theme.name}${theme.compatible ? `(${lang.lang_setting_compat})` : ''}</option>` template = template + `<option value="${themeid}">${theme.name}${theme.compatible ? `(${lang.lang_setting_compat})` : ''}</option>`

View File

@ -41,7 +41,7 @@
<script type="text/javascript" src="../../@@node_base@@/@cutls/materialize-css/dist/js/materialize.js"></script> <script type="text/javascript" src="../../@@node_base@@/@cutls/materialize-css/dist/js/materialize.js"></script>
<script type="text/javascript" src="main.js"></script> <script type="text/javascript" src="main.js"></script>
<script src="../../@@node_base@@/json5/dist/index.min.js"></script> <script src="../../@@node_base@@/json5/dist/index.min.js"></script>
<script src="../../@@node_base@@/vue/dist/vue.min.js"></script> <script src="../../@@node_base@@/vue/dist/vue.global.js"></script>
<script type="text/javascript" src="setting.vue.js"></script> <script type="text/javascript" src="setting.vue.js"></script>
<script type="text/javascript" src="../../@@node_base@@/sweetalert2/dist/sweetalert2.min.js"></script> <script type="text/javascript" src="../../@@node_base@@/sweetalert2/dist/sweetalert2.min.js"></script>
<script> <script>