Skip to content

Commit

Permalink
leethub 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
park-jihoo committed Dec 9, 2023
1 parent 179e4fc commit ca49f2b
Show file tree
Hide file tree
Showing 29 changed files with 21 additions and 1,078 deletions.
992 changes: 0 additions & 992 deletions LeetHub v2.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

9 changes: 0 additions & 9 deletions README.md

This file was deleted.

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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-256@2x.png
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-512@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Shared (App)/Assets.xcassets/AppIcon.appiconset/mac-icon-512@2x.png
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.
Binary file modified Shared (App)/Assets.xcassets/LargeIcon.imageset/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions Shared (App)/Base.lproj/Main.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<script src="../Script.js" defer></script>
</head>
<body>
<img src="../Icon.png" width="128" height="128" alt="LeetHub v2 Icon">
<p class="platform-ios">You can turn on LeetHub v2’s Safari extension in Settings.</p>
<p class="platform-mac state-unknown">You can turn on LeetHub v2’s extension in Safari Extensions preferences.</p>
<p class="platform-mac state-on">LeetHub v2’s extension is currently on. You can turn it off in Safari Extensions preferences.</p>
<p class="platform-mac state-off">LeetHub v2’s extension is currently off. You can turn it on in Safari Extensions preferences.</p>
<img src="../Icon.png" width="128" height="128" alt="LeetHub v3 Icon">
<p class="platform-ios">You can turn on LeetHub v3’s Safari extension in Settings.</p>
<p class="platform-mac state-unknown">You can turn on LeetHub v3’s extension in Safari Extensions preferences.</p>
<p class="platform-mac state-on">LeetHub v3’s extension is currently on. You can turn it off in Safari Extensions preferences.</p>
<p class="platform-mac state-off">LeetHub v3’s extension is currently off. You can turn it on in Safari Extensions preferences.</p>
<button class="platform-mac open-preferences">Quit and Open Safari Extensions Preferences…</button>
</body>
</html>
Binary file modified Shared (App)/Resources/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions Shared (App)/Resources/Script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ function show(platform, enabled, useSettingsInsteadOfPreferences) {
document.body.classList.add(`platform-${platform}`);

if (useSettingsInsteadOfPreferences) {
document.getElementsByClassName('platform-mac state-on')[0].innerText = "LeetHub v2’s extension is currently on. You can turn it off in the Extensions section of Safari Settings.";
document.getElementsByClassName('platform-mac state-off')[0].innerText = "LeetHub v2’s extension is currently off. You can turn it on in the Extensions section of Safari Settings.";
document.getElementsByClassName('platform-mac state-unknown')[0].innerText = "You can turn on LeetHub v2’s extension in the Extensions section of Safari Settings.";
document.getElementsByClassName('platform-mac state-on')[0].innerText = "LeetHub v3’s extension is currently on. You can turn it off in the Extensions section of Safari Settings.";
document.getElementsByClassName('platform-mac state-off')[0].innerText = "LeetHub v3’s extension is currently off. You can turn it on in the Extensions section of Safari Settings.";
document.getElementsByClassName('platform-mac state-unknown')[0].innerText = "You can turn on LeetHub v3’s extension in the Extensions section of Safari Settings.";
document.getElementsByClassName('platform-mac open-preferences')[0].innerText = "Quit and Open Safari Settings…";
}

Expand Down
4 changes: 2 additions & 2 deletions Shared (App)/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ViewController.swift
// Shared (App)
//
// Created by 박지후 on 2023. 11. 27..
// Created by 박지후 on 2023. 12. 9..
//

import WebKit
Expand All @@ -16,7 +16,7 @@ import SafariServices
typealias PlatformViewController = NSViewController
#endif

let extensionBundleIdentifier = "com.github.LeetHub-v2.Extension"
let extensionBundleIdentifier = "com.github.LeetHub-v3.Extension"

class ViewController: PlatformViewController, WKNavigationDelegate, WKScriptMessageHandler {

Expand Down
2 changes: 1 addition & 1 deletion Shared (Extension)/SafariWebExtensionHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SafariWebExtensionHandler.swift
// Shared (Extension)
//
// Created by 박지후 on 2023. 11. 27..
// Created by 박지후 on 2023. 12. 9..
//

import SafariServices
Expand Down
2 changes: 1 addition & 1 deletion iOS (App)/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// AppDelegate.swift
// iOS (App)
//
// Created by 박지후 on 2023. 11. 27..
// Created by 박지후 on 2023. 12. 9..
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion iOS (App)/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SceneDelegate.swift
// iOS (App)
//
// Created by 박지후 on 2023. 11. 27..
// Created by 박지후 on 2023. 12. 9..
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion macOS (App)/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// AppDelegate.swift
// macOS (App)
//
// Created by 박지후 on 2023. 11. 27..
// Created by 박지후 on 2023. 12. 9..
//

import Cocoa
Expand Down
14 changes: 7 additions & 7 deletions macOS (App)/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
<application id="hnw-xV-0zn" sceneMemberID="viewController">
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
<items>
<menuItem title="LeetHub v2" id="1Xt-HY-uBw">
<menuItem title="LeetHub v3" id="1Xt-HY-uBw">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="LeetHub v2" systemMenu="apple" id="uQy-DD-JDr">
<menu key="submenu" title="LeetHub v3" systemMenu="apple" id="uQy-DD-JDr">
<items>
<menuItem title="About LeetHub v2" id="5kV-Vb-QxS">
<menuItem title="About LeetHub v3" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/>
<menuItem title="Hide LeetHub v2" keyEquivalent="h" id="Olw-nP-bQN">
<menuItem title="Hide LeetHub v3" keyEquivalent="h" id="Olw-nP-bQN">
<connections>
<action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/>
</connections>
Expand All @@ -41,7 +41,7 @@
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
<menuItem title="Quit LeetHub v2" keyEquivalent="q" id="4sb-4s-VLi">
<menuItem title="Quit LeetHub v3" keyEquivalent="q" id="4sb-4s-VLi">
<connections>
<action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/>
</connections>
Expand All @@ -53,7 +53,7 @@
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
<items>
<menuItem title="LeetHub v2 Help" keyEquivalent="?" id="FKE-Sm-Kum">
<menuItem title="LeetHub v3 Help" keyEquivalent="?" id="FKE-Sm-Kum">
<connections>
<action selector="showHelp:" target="Ady-hI-5gd" id="y7X-2Q-9no"/>
</connections>
Expand All @@ -77,7 +77,7 @@
<scene sceneID="R2V-B0-nI4">
<objects>
<windowController showSeguePresentationStyle="single" id="B8D-0N-5wS" sceneMemberID="viewController">
<window key="window" title="LeetHub v2" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" releasedWhenClosed="NO" animationBehavior="default" id="IQv-IB-iLA">
<window key="window" title="LeetHub v3" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" releasedWhenClosed="NO" animationBehavior="default" id="IQv-IB-iLA">
<windowStyleMask key="styleMask" titled="YES" closable="YES"/>
<windowCollectionBehavior key="collectionBehavior" fullScreenNone="YES"/>
<rect key="contentRect" x="196" y="240" width="425" height="325"/>
Expand Down
12 changes: 0 additions & 12 deletions macOS (App)/LeetHub v2.entitlements

This file was deleted.

10 changes: 0 additions & 10 deletions macOS (Extension)/LeetHub v2.entitlements

This file was deleted.

0 comments on commit ca49f2b

Please sign in to comment.