Skip to content

Commit

Permalink
Switch to new package "repository" format
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jan 27, 2024
1 parent 933bb60 commit 0e7cc56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
"description": "The one-click backup utility",
"license": "GPL-3.0",
"type": "module",
"main": "releases/snapbackup.jar",
"repository": "github:snap-backup/snapbackup",
"module": "releases/snapbackup.jar",
"repository": {
"type": "git",
"url": "git+https://github.com/snap-backup/snapbackup.git"
},
"homepage": "https://github.com/snap-backup/snapbackup",
"bugs": "https://github.com/snap-backup/snapbackup/issues",
"docs": "https://snapbackup.org/faq",
Expand Down Expand Up @@ -42,7 +45,7 @@
"jshint . --exclude-path .gitignore"
],
"build": [
"replacer website/root website-target/1-dev --pkg",
"replacer website/root website-target/1-dev",
"copy-file src/resources/snap-backup-user-guide.html --folder website-target/1-dev",
"copy-folder src/resources/graphics/application --ext=.png website-target/1-dev/graphics/flags --summary",
"copy-folder website/graphics --ext=.png,.svg website-target/1-dev/graphics --summary",
Expand All @@ -59,12 +62,12 @@
"interactive": "browser-sync . --startPath website-target/1-dev --files website-target"
},
"devDependencies": {
"@fortawesome/fontawesome-free": "~6.4",
"add-dist-header": "~1.2",
"browser-sync": "~2.29",
"@fortawesome/fontawesome-free": "~6.5",
"add-dist-header": "~1.3",
"browser-sync": "~3.0",
"copy-file-util": "~1.1",
"copy-folder-util": "~1.1",
"dna-engine": "~3.0",
"dna-engine": "~3.1",
"hamburger-menu": "~0.6",
"jshint": "~2.13",
"less": "~4.2",
Expand All @@ -73,7 +76,7 @@
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"uglify-js": "~3.17",
"w3c-html-validator": "~1.4",
"web-ignition": "~2.0"
"w3c-html-validator": "~1.6",
"web-ignition": "~2.1"
}
}
3 changes: 2 additions & 1 deletion website/snap-backup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const app = {
const wedge = globalThis.document.createElement('div');
wedge.classList.add('wedge');
globalThis.document.querySelector('main').prepend(wedge);
const macosMode = libX.browser.macOS() && dna.browser.getUrlParams().view !== 'all';
const params = new URLSearchParams(globalThis.location.search);
const macosMode = libX.browser.macOS() && params.get('view') !== 'all';
dna.dom.toggleClass(globalThis.document.body, 'macos-mode', macosMode);
},
};
Expand Down

0 comments on commit 0e7cc56

Please sign in to comment.