-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 300083e
Showing
47 changed files
with
13,169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
/out | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Magius | ||
|
||
A tag based image manager. | ||
|
||
## Features | ||
|
||
- Open existing directories and browse the images within | ||
- Tag your images to easily find them again | ||
- Tags can be added and removed in bulk and even renamed later on | ||
- Drag and drop files directly into and out of Magius | ||
|
||
## Screenshots | ||
|
||
![](./readme/demo1.png) | ||
|
||
![](./readme/demo2.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const {app, session, protocol, ipcMain, BrowserWindow} = require("electron") | ||
const config = require("./magius.config") | ||
|
||
if (config.devMode) process.env["ELECTRON_DISABLE_SECURITY_WARNINGS"] = "true" | ||
|
||
app.whenReady().then(async () => { | ||
if (config.devMode) { | ||
await session["defaultSession"].loadExtension(__dirname + "/chrome-extensions/vue-devtools") | ||
await session["defaultSession"].loadExtension(__dirname + "/chrome-extensions/surfingkeys") | ||
protocol.registerFileProtocol("file", (request, cb) => { | ||
const pathname = request.url.replace("file:///", "").replace("%20", " ") | ||
cb(pathname) | ||
}) | ||
} | ||
|
||
const win = new BrowserWindow({ | ||
show: false, | ||
backgroundColor: "#1E1E21", | ||
webPreferences: { | ||
nodeIntegration: true, | ||
enableRemoteModule: true, | ||
webSecurity: !config.devMode, | ||
}, | ||
}) | ||
if (config.devMode) | ||
await win.loadURL("http://localhost:8080") | ||
else | ||
await win.loadFile("./dist/index.html") | ||
win.setMenuBarVisibility(false) | ||
win.maximize() | ||
win.show() | ||
|
||
if (config.devMode) { | ||
win.setMenuBarVisibility(true) | ||
win.webContents.openDevTools() | ||
} | ||
}) | ||
|
||
ipcMain.on('ondragstart', (event, filePaths) => { | ||
event.sender.startDrag({ | ||
files: filePaths, | ||
icon: __dirname + '/drag-icon.png' | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
devMode: 1, | ||
} |
Oops, something went wrong.