Skip to content

Commit

Permalink
scriptshifter bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismattmiller committed Jun 11, 2024
1 parent b054003 commit 446f939
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 29 deletions.
34 changes: 27 additions & 7 deletions dist/assets/index-enxQ0v22.js → dist/assets/index-BL1Co_2m.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var require_index_001 = __commonJS({
"assets/index-enxQ0v22.js"(exports, module) {
"assets/index-BL1Co_2m.js"(exports, module) {
(function polyfill() {
const relList = document.createElement("link").relList;
if (relList && relList.supports && relList.supports("modulepreload")) {
Expand Down Expand Up @@ -35583,9 +35583,12 @@ ${$$2(r2)}`), n2;
...mapWritableState(usePreferenceStore, ["showScriptshifterConfigModal", "scriptShifterOptions"])
},
watch: {
showDebugModal(newVal, oldVal) {
console.log(newVal, oldVal);
}
// showDebugModal(newVal, oldVal) {
// console.log(newVal,oldVal)
// // if (newVal === true){
// // this.loadPrefGroup()
// // }
// }
},
methods: {
dragResize: function(newRect) {
Expand Down Expand Up @@ -35622,10 +35625,27 @@ ${$$2(r2)}`), n2;
this.scriptShifterOptions = JSON.parse(JSON.stringify(current));
}
},
async created() {
let req = await fetch(this.configStore.returnUrls.scriptshifter + "languages");
let json = await req.json();
for (let k2 in json) {
json[k2].s2r = false;
json[k2].r2s = false;
if (this.scriptShifterOptions[k2]) {
if (this.scriptShifterOptions[k2].s2r) {
json[k2].s2r = true;
}
if (this.scriptShifterOptions[k2].r2s) {
json[k2].r2s = true;
}
}
}
this.allLanguages = json;
},
async mounted() {
}
};
const _withScopeId$b = (n2) => (pushScopeId("data-v-d73a33b4"), n2 = n2(), popScopeId(), n2);
const _withScopeId$b = (n2) => (pushScopeId("data-v-eeba5149"), n2 = n2(), popScopeId(), n2);
const _hoisted_1$E = { class: "menu-buttons" };
const _hoisted_2$v = /* @__PURE__ */ _withScopeId$b(() => /* @__PURE__ */ createBaseVNode("p", null, [
/* @__PURE__ */ createTextVNode("Visit "),
Expand Down Expand Up @@ -35723,7 +35743,7 @@ ${$$2(r2)}`), n2;
_: 1
});
}
const ScriptshifterConfigModal = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$t], ["__scopeId", "data-v-d73a33b4"]]);
const ScriptshifterConfigModal = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$t], ["__scopeId", "data-v-eeba5149"]]);
const _sfc_main$u = {
components: {
LoadingModal,
Expand Down Expand Up @@ -64260,4 +64280,4 @@ ${$$2(r2)}`), n2;
}
});
export default require_index_001();
//# sourceMappingURL=index-enxQ0v22.js.map
//# sourceMappingURL=index-BL1Co_2m.js.map
1 change: 1 addition & 0 deletions dist/assets/index-BL1Co_2m.js.map

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions dist/assets/index-CbBIMzaZ.css → dist/assets/index-D4dM4j52.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,46 +134,46 @@ button[data-v-83f7db71]{
}


th[data-v-d73a33b4]{
th[data-v-eeba5149]{
text-align: left;
font-weight: bold;
}
tr[data-v-d73a33b4]:hover{
tr[data-v-eeba5149]:hover{
background-color: aliceblue;
}
td[data-v-d73a33b4]{
td[data-v-eeba5149]{
border-bottom: solid 1px whitesmoke;
}
.checkbox-option[data-v-d73a33b4]{
.checkbox-option[data-v-eeba5149]{
width: 20px;
height: 20px;
}
input[type=checkbox][data-v-d73a33b4]{
input[type=checkbox][data-v-eeba5149]{
width: 25px;
height: 25px;
}
.option[data-v-d73a33b4]{
.option[data-v-eeba5149]{
display: flex;
}
.option-title[data-v-d73a33b4]{
.option-title[data-v-eeba5149]{
flex:2;
}
.option-title-header[data-v-d73a33b4]{
.option-title-header[data-v-eeba5149]{
font-weight: bold;
}
.option-title-desc[data-v-d73a33b4]{
.option-title-desc[data-v-eeba5149]{
font-size: 0.8em;
color:gray;
}
#debug-content[data-v-d73a33b4]{
#debug-content[data-v-eeba5149]{
overflow: hidden;
overflow-y: auto;
}
.menu-buttons[data-v-d73a33b4]{
.menu-buttons[data-v-eeba5149]{
margin-bottom: 2em;
position: relative;
}
.close-button[data-v-d73a33b4]{
.close-button[data-v-eeba5149]{
position: absolute;
right: 5px;
top: 5px;
Expand All @@ -182,7 +182,7 @@ input[type=checkbox][data-v-d73a33b4]{
border: solid 1px black;
cursor: pointer;
}
.debug-modal[data-v-d73a33b4]{
.debug-modal[data-v-eeba5149]{
background-color: white;
-webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0.27);
box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0.27);
Expand Down
1 change: 0 additions & 1 deletion dist/assets/index-enxQ0v22.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<link rel="icon" href="/bfe2/quartz/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<script type="module" crossorigin src="/bfe2/quartz/assets/index-enxQ0v22.js"></script>
<link rel="stylesheet" crossorigin href="/bfe2/quartz/assets/index-CbBIMzaZ.css">
<script type="module" crossorigin src="/bfe2/quartz/assets/index-BL1Co_2m.js"></script>
<link rel="stylesheet" crossorigin href="/bfe2/quartz/assets/index-D4dM4j52.css">
</head>
<body>
<div id="app"></div>
Expand Down
36 changes: 30 additions & 6 deletions src/components/panels/edit/modals/ScriptshifterConfigModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
},
watch: {
showDebugModal(newVal, oldVal) {
console.log(newVal,oldVal)
// if (newVal === true){
// this.loadPrefGroup()
// }
}
// showDebugModal(newVal, oldVal) {
// console.log(newVal,oldVal)
// // if (newVal === true){
// // this.loadPrefGroup()
// // }
// }
},
methods: {
Expand Down Expand Up @@ -106,6 +106,30 @@
},
async created(){
let req = await fetch(this.configStore.returnUrls.scriptshifter + 'languages')
let json = await req.json()
for (let k in json){
json[k].s2r = false
json[k].r2s = false
if (this.scriptShifterOptions[k]){
if (this.scriptShifterOptions[k].s2r){
json[k].s2r = true
}
if (this.scriptShifterOptions[k].r2s){
json[k].r2s = true
}
}
}
this.allLanguages = json
},
async mounted() {
Expand Down

0 comments on commit 446f939

Please sign in to comment.