Skip to content

Commit

Permalink
chore: replace vue with global one
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Oct 8, 2024
1 parent f545cd7 commit fcf8970
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions packages/server/assets/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<a href="https://osuck.net/" target="_blank">cyperdark</a>
</span>
</footer>
<script src="/assets/vue.js"></script>
<script type="module" src="/assets/homepage.js"></script>
</body>
</html>
20 changes: 10 additions & 10 deletions packages/server/assets/homepage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createApp, ref } from './vue.js';
const { createApp, ref } = Vue;


const queryParams = new URLSearchParams(window.location.search);
Expand Down Expand Up @@ -516,14 +516,14 @@ const settingsBuilder = {
const button_text = event.target.innerText;
startDownload(event.target);

console.log({
uniqueID: item.uniqueID,
type: item.type,
title: item.title,
description: item.description,
options: item.options,
value: item.value,
});
// console.log({
// uniqueID: item.uniqueID,
// type: item.type,
// title: item.title,
// description: item.description,
// options: item.options,
// value: item.value,
// });


settings.value.push({
Expand Down Expand Up @@ -639,7 +639,7 @@ const showSettings = {
};


console.log(setting.value, props, props.values[setting.uniqueID]);
// console.log(setting.value, props, props.values[setting.uniqueID]);
if (props.values[setting.uniqueID]) {

setting.value = props.values[setting.uniqueID];
Expand Down
10 changes: 5 additions & 5 deletions packages/server/assets/vue.js

Large diffs are not rendered by default.

0 comments on commit fcf8970

Please sign in to comment.