Initial commit

This commit is contained in:
2025-01-19 04:43:22 +01:00
commit 31da35961a
35 changed files with 2249 additions and 0 deletions

BIN
Ventry Upload Watcher/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,187 @@
{
"images" : [
{
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "1x",
"size" : "16x16"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "ventry-32 1.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "2x",
"size" : "16x16"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "ventry-32.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "1x",
"size" : "32x32"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "ventry-64.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "2x",
"size" : "32x32"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "ventry-128.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "1x",
"size" : "128x128"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "ventry-256.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "2x",
"size" : "128x128"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "ventry-256 1.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "1x",
"size" : "256x256"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "ventry-512.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "2x",
"size" : "256x256"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "ventry-512 1.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "1x",
"size" : "512x512"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "ventry-1024.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
},
{
"idiom" : "mac",
"language-direction" : "left-to-right",
"scale" : "2x",
"size" : "512x512"
},
{
"idiom" : "mac",
"language-direction" : "right-to-left",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,28 @@
{
"images" : [
{
"filename" : "Ventry PNG to SVG (1).svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Ventry PNG to SVG (1) 1.svg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Ventry PNG to SVG (1) 2.svg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"compression-type" : "automatic",
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 128 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 128 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 128 KiB

View File

@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "ventry-watcher.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 KiB

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.jleibl.ventryuploadwatcher</string>
</array>
<key>com.apple.security.assets.movies.read-only</key>
<true/>
<key>com.apple.security.assets.music.read-only</key>
<true/>
<key>com.apple.security.assets.pictures.read-only</key>
<true/>
<key>com.apple.security.automation.apple-events</key>
<true/>
<key>com.apple.security.files.downloads.read-only</key>
<true/>
<key>com.apple.security.files.pictures.read-write</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.personal-information.photos-library</key>
<true/>
<key>com.apple.security.temporary-exception.apple-events</key>
<array>
<string>com.apple.systemevents</string>
</array>
<key>com.apple.security.temporary-exception.files.home-relative-path.read-write</key>
<array>
<string>/</string>
</array>
</dict>
</plist>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.assets.pictures.read-only</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.files.downloads.read-write</key>
<true/>
<key>com.apple.security.files.pictures.read-write</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,54 @@
//
// Ventry_Upload_WatcherApp.swift
// Ventry Upload Watcher
//
// Created by Jan-Marlon Leibl on 18.01.25.
//
import SwiftUI
import AppKit
@main
struct Ventry_Upload_WatcherApp: App {
// MARK: - Properties
// MARK: - Scene
var body: some Scene {
WindowGroup {
ContentView()
.fixedSize()
}
.windowResizability(.contentSize)
MenuBarExtra {
menuContent
} label: {
menuIcon
}
}
// MARK: - Menu Components
@ViewBuilder
private var menuContent: some View {
Button("Show Window") {
NSApp.activate(ignoringOtherApps: true)
NSApp.windows.first?.makeKeyAndOrderFront(nil)
}
Divider()
Button("Quit") {
NSApplication.shared.terminate(nil)
}
.keyboardShortcut("q")
}
@ViewBuilder
private var menuIcon: some View {
if let nsImage = NSImage(named: "ventry-logo-white") {
Image(nsImage: nsImage)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 16, height: 16)
}
}
}