-
-
- Steam Link |
- Title |
- Size |
- Last Updated |
- Subscriptions |
- |
-
-
-
-
-
-
- |
- {{ result.title }} |
- {{ BKMG(result.file_size) }} |
- {{ new Date(result.time_updated * 1000).toLocaleDateString("en-us") }} |
- {{ result.lifetime_subscriptions }} |
-
-
-
- |
-
-
+
+
+ {{ error }}
+
+
+
+
+
Search for something...
+
+
+
+
+
+
+
Searching for "{{ store.searchText }}"...
+
+
+
+
+
{{ searchResults.response.total }} results for "{{ store.searchText }}"
+
+
+
+
+ Steam Link |
+ Title |
+ Size |
+ Last Updated |
+ Subscriptions |
+ |
+
+
+
+
+
+
+ |
+ {{ result.title }} |
+ {{ BKMG(result.file_size) }} |
+ {{ new Date(result.time_updated * 1000).toLocaleDateString("en-us") }} |
+ {{ result.lifetime_subscriptions }} |
+
+
+
+ |
+
+
+
+
diff --git a/web/docroot/src/components/Servers.vue b/web/docroot/src/components/Servers.vue
new file mode 100644
index 0000000..383f269
--- /dev/null
+++ b/web/docroot/src/components/Servers.vue
@@ -0,0 +1,20 @@
+
+
+
+
+
diff --git a/web/docroot/src/config.js b/web/docroot/src/config.js
new file mode 100644
index 0000000..3b5f715
--- /dev/null
+++ b/web/docroot/src/config.js
@@ -0,0 +1,6 @@
+const config = {
+ baseUrl: window.location.protocol + '//' + window.location.hostname + ':8000',
+ steamUrl: 'https://steamcommunity.com/sharedfiles/filedetails/?id='
+}
+
+export { config }
diff --git a/web/docroot/src/css/index.css b/web/docroot/src/css/index.css
index f33c604..21fdb4a 100644
--- a/web/docroot/src/css/index.css
+++ b/web/docroot/src/css/index.css
@@ -7,10 +7,6 @@ th, td {
padding-right: 10px
}
-.selected {
- background-color: cyan;
-}
-
.simulink {
cursor: pointer;
text-underline: blue;
diff --git a/web/docroot/src/main.js b/web/docroot/src/main.js
index fa675b1..e770add 100644
--- a/web/docroot/src/main.js
+++ b/web/docroot/src/main.js
@@ -14,12 +14,6 @@ const app = createApp(App)
// Add the store
app.use(createPinia())
-// Global properties
-// The back end URL
-app.config.globalProperties.baseUrl = window.location.protocol + '//' + window.location.hostname + ':8000'
-// The steam workshop URL
-app.config.globalProperties.steamUrl = 'https://steamcommunity.com/sharedfiles/filedetails/?id='
-
// A global error handler
app.config.errorHandler = (err, instance, info) => {
const store = useAppStore()
diff --git a/web/docroot/src/stores/app.js b/web/docroot/src/stores/app.js
index 6262a31..2cfe4d8 100644
--- a/web/docroot/src/stores/app.js
+++ b/web/docroot/src/stores/app.js
@@ -5,6 +5,8 @@ export const useAppStore = defineStore('app', {
errorText: '',
modId: 0,
modFile: '',
- searchText: ''
+ mods: [],
+ searchText: '',
+ section: 'mods',
})
})
diff --git a/web/docroot/src/util.js b/web/docroot/src/util.js
new file mode 100644
index 0000000..f227787
--- /dev/null
+++ b/web/docroot/src/util.js
@@ -0,0 +1,11 @@
+const units = ['bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']
+
+const BKMG = (val) => {
+ let l = 0, n = parseInt(val, 10) || 0
+ while(n >= 1024 && ++l){
+ n = n/1024
+ }
+ return(n.toFixed(n < 10 && l > 0 ? 1 : 0) + ' ' + units[l])
+}
+
+export { BKMG }