Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tzwel committed Sep 9, 2021
1 parent 9b4adbf commit 577cf29
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 21 deletions.
1 change: 0 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function createWindow () {
minHeight: 700,
webPreferences: {
enableRemoteModule: true,
preload: path.join(__dirname, "preload.js"),
contextIsolation: false,
nodeIntegration: true// ,
// devTools: false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Absence",
"version": "0.1.0",
"version": "1.0.0",
"description": "An open-source client for browsing Gelbooru",
"main": "main.js",
"repository": "https://github.com/tzwel/Absence",
Expand Down
Empty file removed preload.js
Empty file.
1 change: 0 additions & 1 deletion src/css/components/toasts.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ toast {
background: transparent;
background: rgba(22,22,22,0.6);
backdrop-filter: blur(20px);
/* border-left: 4px solid #ffffff8e; */
border: 1px solid var(--accent-color);
color: var(--accent-color);
animation-name: toastEnter;
Expand Down
2 changes: 1 addition & 1 deletion src/css/components/tooltip.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#tooltip {
position:absolute;
position: absolute;
z-index: 30;
margin: 2px;
align-items: center;
Expand Down
1 change: 0 additions & 1 deletion src/js/detailedimageview.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,4 @@ function loadDetails() {
if (`${resp[clickedNumber]["sample"]}` === "0") {
drawer.insertAdjacentHTML("beforeend", "<h2> This image doesn't have a smaller version. </h2>");
}
// drawer.insertAdjacentHTML("beforeend", `<h2> Comments </h2> <span> ${commentsLink + resp[clickedNumber]["id"]} </span>`);
}
2 changes: 0 additions & 2 deletions src/js/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ if (!fs.existsSync(savePath)) {
});
}

// downloadImage();

function downloadImage(link, method) {
let Dir;
Dir = `${savePath}/${ resp[clickedNumber]["id"] } - Absence${path.extname(link)}`;
Expand Down
5 changes: 1 addition & 4 deletions src/js/drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ function drawerAction() {
}
}

document.onclick = e => {
// console.log(e.target);
// console.log(e.target.tagName);

document.onclick = e => {
if (e.target.tagName === "DRAWER-BACKGROUND") {
drawerAction();
}
Expand Down
8 changes: 2 additions & 6 deletions src/js/libs/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}(this, function() {
let _options = {
tooltipId: "tooltip",
offsetDefault: 15
offsetDefault: 30
};

let _tooltips = [];
Expand Down Expand Up @@ -155,8 +155,4 @@
_bindTooltips(true);
}
};
}));

tooltip.setOptions({
offsetDefault: 30
});
}));
1 change: 0 additions & 1 deletion src/js/populate.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function populate() {
const badge = document.createElement("badge");
badge.innerHTML = ".gif";
thumbnailUrl = `${thumbnailUrl}${resp[i].directory}/thumbnail_${resp[i].hash}.jpg`;
// console.log(thumbnailUrl);

if (resp[i].file_url.includes("video-c") === true) {
img = document.createElement("video");
Expand Down
3 changes: 0 additions & 3 deletions src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ let sampleClickedImageUrl;
let originalClickedImageUrl;

window.onclick = e => {
// console.log(e.target);
// console.log(e.target.tagName);
if (e.target.tagName === "IMG") {

if (e.target.hasAttribute("original") === true && e.target.tagName === "IMG") {
Expand Down Expand Up @@ -57,5 +55,4 @@ function imageBlur() {

function popupLoad() {
imageDisplayer.style.filter = "blur(0)";
// imageDisplayer.style.backgroundImage = `url("")`;
}

0 comments on commit 577cf29

Please sign in to comment.