Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/github_actions/all-867774d144
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr authored Aug 28, 2024
2 parents 93194a6 + 2bcb890 commit 154715a
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
3 changes: 1 addition & 2 deletions internal/core/processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func ProcessBookmark(deps *dependencies.Dependencies, req ProcessRequest) (book
if err != nil {
return book, false, fmt.Errorf("failed to create temp archive: %v", err)
}
defer deps.Domains.Storage.FS().Remove(tmpFile.Name())
defer os.Remove(tmpFile.Name())

archivalRequest := warc.ArchivalRequest{
URL: book.URL,
Expand All @@ -178,7 +178,6 @@ func ProcessBookmark(deps *dependencies.Dependencies, req ProcessRequest) (book

err = warc.NewArchive(archivalRequest, tmpFile.Name())
if err != nil {
defer os.Remove(tmpFile.Name())
return book, false, fmt.Errorf("failed to create archive: %v", err)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/view/assets/css/style.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions internal/view/assets/js/page/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export default {
},
{
name: "makePublic",
label: "Make archive publicly available",
label: "Make bookmark publicly available",
type: "check",
value: this.appOptions.MakePublic,
},
Expand Down Expand Up @@ -517,7 +517,7 @@ export default {
},
{
name: "makePublic",
label: "Make archive publicly available",
label: "Make bookmark publicly available",
type: "check",
value: book.public >= 1,
},
Expand Down
2 changes: 1 addition & 1 deletion internal/view/assets/js/page/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var template = `
</label>
<label>
<input type="checkbox" v-model="appOptions.MakePublic" @change="saveSetting">
Make archive publicly available by default
Make bookmark publicly available by default
</label>
</details>
<details v-if="activeAccount.owner" open class="setting-group" id="setting-accounts">
Expand Down
6 changes: 6 additions & 0 deletions internal/view/assets/less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,12 @@ a {
border: 1px solid var(--border);
}
}
blockquote {
margin: 15px;
padding: 15px;
font-style: italic;
background: var(--bgqoute);
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions internal/view/assets/less/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
--contentBg: #292929;
--headerBg: #292929;
--selectedBg: #261918;
--bgqoute: #1f1f1f5e;
}

.light-colors {
Expand All @@ -24,6 +25,7 @@
--contentBg: #fff;
--headerBg: #fff;
--selectedBg: #ffe7e5;
--bgqoute: #eee;
}

body.dark {
Expand Down
2 changes: 1 addition & 1 deletion internal/view/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import pageHome from "./assets/js/page/home.js";
import pageSetting from "./assets/js/page/setting.js";
import customDialog from "./assets/js/component/dialog.js";
import EventBus from "../assets/js/component/eventBus.js";
import EventBus from "./assets/js/component/eventBus.js";
Vue.prototype.$bus = EventBus;

var app = new Vue({
Expand Down
1 change: 0 additions & 1 deletion internal/view/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
},
mounted() {
// Load setting
this.loadSetting();
localStorage.removeItem("shiori-account");
localStorage.removeItem("shiori-token");

Expand Down

0 comments on commit 154715a

Please sign in to comment.