Skip to content

Commit

Permalink
fix image path creating on unix and disable manual edit basePath
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkiokan committed May 2, 2022
1 parent 7f380be commit dfe0ea1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hb-store-cdn-server",
"version": "1.7.1",
"version": "1.7.2",
"description": "HB-Store CDN Server",
"productName": "HB-Store CDN Server",
"homepage": "https://gkiokan.net",
Expand Down
4 changes: 2 additions & 2 deletions src-electron/src/hb.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {

if(item.patchedFilename.charAt(0) == '/')
item.patchedFilename = item.patchedFilename.substr(1)

return item
},

Expand All @@ -56,7 +56,7 @@ export default {
addImages(data=null, base){
let id = data.id
let patched
let image = base + this.getImagePathURI(data)
let image = base + '/' + this.getImagePathURI(data)

data.image = image
data.main_icon_path = image
Expand Down
2 changes: 1 addition & 1 deletion src/components/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<q-separator class="q-my-md" />

<q-input v-model="basePath" class="q-pr-none" outlined dense stack-label label="Base Folder Path">
<q-input v-model="basePath" class="q-pr-none" outlined dense stack-label label="Base Folder Path" readonly>
<slot name="append">
<q-btn square flat class="q-pa-sm" color="white" icon="sync" size="sm" @click="$root.scanFolder()" :disabled="state != 'running'" />
<q-btn square flat class="q-pa-sm" color="white" icon="folder" @click="openBasePathDialog" />
Expand Down
4 changes: 4 additions & 0 deletions src/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ html, body {
.cursor-pointer {
cursor: pointer !important;
}

.q-field--outlined.q-field--readonly .q-field__control:before {
border-style: solid !important;
}

0 comments on commit dfe0ea1

Please sign in to comment.