mvp working
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
dist
|
||||||
|
node_modules
|
||||||
|
*.map
|
||||||
@@ -1,963 +0,0 @@
|
|||||||
// !$*UTF8*$!
|
|
||||||
{
|
|
||||||
archiveVersion = 1;
|
|
||||||
classes = {
|
|
||||||
};
|
|
||||||
objectVersion = 56;
|
|
||||||
objects = {
|
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
|
||||||
53BF83D92B0910510035E5BA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53BF83D82B0910510035E5BA /* AppDelegate.swift */; };
|
|
||||||
53BF83DB2B0910510035E5BA /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53BF83DA2B0910510035E5BA /* SceneDelegate.swift */; };
|
|
||||||
53BF83DE2B0910510035E5BA /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83DC2B0910510035E5BA /* LaunchScreen.storyboard */; };
|
|
||||||
53BF83E12B0910510035E5BA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83DF2B0910510035E5BA /* Main.storyboard */; };
|
|
||||||
53BF83EA2B0910510035E5BA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53BF83E92B0910510035E5BA /* AppDelegate.swift */; };
|
|
||||||
53BF83ED2B0910510035E5BA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83EB2B0910510035E5BA /* Main.storyboard */; };
|
|
||||||
53BF83F42B0910510035E5BA /* HyperTab Extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 53BF83F32B0910510035E5BA /* HyperTab Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
|
||||||
53BF83FE2B0910510035E5BA /* HyperTab Extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 53BF83FD2B0910510035E5BA /* HyperTab Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
|
||||||
53BF84042B0910510035E5BA /* Main.html in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83BF2B0910510035E5BA /* Main.html */; };
|
|
||||||
53BF84052B0910510035E5BA /* Main.html in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83BF2B0910510035E5BA /* Main.html */; };
|
|
||||||
53BF84062B0910510035E5BA /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C12B0910510035E5BA /* Icon.png */; };
|
|
||||||
53BF84072B0910510035E5BA /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C12B0910510035E5BA /* Icon.png */; };
|
|
||||||
53BF84082B0910510035E5BA /* Style.css in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C22B0910510035E5BA /* Style.css */; };
|
|
||||||
53BF84092B0910510035E5BA /* Style.css in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C22B0910510035E5BA /* Style.css */; };
|
|
||||||
53BF840A2B0910510035E5BA /* Script.js in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C32B0910510035E5BA /* Script.js */; };
|
|
||||||
53BF840B2B0910510035E5BA /* Script.js in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C32B0910510035E5BA /* Script.js */; };
|
|
||||||
53BF840C2B0910510035E5BA /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53BF83C42B0910510035E5BA /* ViewController.swift */; };
|
|
||||||
53BF840D2B0910510035E5BA /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53BF83C42B0910510035E5BA /* ViewController.swift */; };
|
|
||||||
53BF840E2B0910510035E5BA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C52B0910510035E5BA /* Assets.xcassets */; };
|
|
||||||
53BF840F2B0910510035E5BA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C52B0910510035E5BA /* Assets.xcassets */; };
|
|
||||||
53BF84102B0910510035E5BA /* SafariWebExtensionHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53BF83C72B0910510035E5BA /* SafariWebExtensionHandler.swift */; };
|
|
||||||
53BF84112B0910510035E5BA /* SafariWebExtensionHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53BF83C72B0910510035E5BA /* SafariWebExtensionHandler.swift */; };
|
|
||||||
53BF84122B0910510035E5BA /* _locales in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C92B0910510035E5BA /* _locales */; };
|
|
||||||
53BF84132B0910510035E5BA /* _locales in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83C92B0910510035E5BA /* _locales */; };
|
|
||||||
53BF84142B0910510035E5BA /* images in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CA2B0910510035E5BA /* images */; };
|
|
||||||
53BF84152B0910510035E5BA /* images in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CA2B0910510035E5BA /* images */; };
|
|
||||||
53BF84162B0910510035E5BA /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CB2B0910510035E5BA /* manifest.json */; };
|
|
||||||
53BF84172B0910510035E5BA /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CB2B0910510035E5BA /* manifest.json */; };
|
|
||||||
53BF84182B0910510035E5BA /* background.js in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CC2B0910510035E5BA /* background.js */; };
|
|
||||||
53BF84192B0910510035E5BA /* background.js in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CC2B0910510035E5BA /* background.js */; };
|
|
||||||
53BF841A2B0910510035E5BA /* content.js in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CD2B0910510035E5BA /* content.js */; };
|
|
||||||
53BF841B2B0910510035E5BA /* content.js in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CD2B0910510035E5BA /* content.js */; };
|
|
||||||
53BF841C2B0910510035E5BA /* popup.html in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CE2B0910510035E5BA /* popup.html */; };
|
|
||||||
53BF841D2B0910510035E5BA /* popup.html in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CE2B0910510035E5BA /* popup.html */; };
|
|
||||||
53BF841E2B0910510035E5BA /* popup.css in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CF2B0910510035E5BA /* popup.css */; };
|
|
||||||
53BF841F2B0910510035E5BA /* popup.css in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83CF2B0910510035E5BA /* popup.css */; };
|
|
||||||
53BF84202B0910510035E5BA /* popup.js in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83D02B0910510035E5BA /* popup.js */; };
|
|
||||||
53BF84212B0910510035E5BA /* popup.js in Resources */ = {isa = PBXBuildFile; fileRef = 53BF83D02B0910510035E5BA /* popup.js */; };
|
|
||||||
/* End PBXBuildFile section */
|
|
||||||
|
|
||||||
/* Begin PBXContainerItemProxy section */
|
|
||||||
53BF83F52B0910510035E5BA /* PBXContainerItemProxy */ = {
|
|
||||||
isa = PBXContainerItemProxy;
|
|
||||||
containerPortal = 53BF83B92B0910500035E5BA /* Project object */;
|
|
||||||
proxyType = 1;
|
|
||||||
remoteGlobalIDString = 53BF83F22B0910510035E5BA;
|
|
||||||
remoteInfo = "HyperTab Extension (iOS)";
|
|
||||||
};
|
|
||||||
53BF83FF2B0910510035E5BA /* PBXContainerItemProxy */ = {
|
|
||||||
isa = PBXContainerItemProxy;
|
|
||||||
containerPortal = 53BF83B92B0910500035E5BA /* Project object */;
|
|
||||||
proxyType = 1;
|
|
||||||
remoteGlobalIDString = 53BF83FC2B0910510035E5BA;
|
|
||||||
remoteInfo = "HyperTab Extension (macOS)";
|
|
||||||
};
|
|
||||||
/* End PBXContainerItemProxy section */
|
|
||||||
|
|
||||||
/* Begin PBXCopyFilesBuildPhase section */
|
|
||||||
53BF84272B0910510035E5BA /* Embed Foundation Extensions */ = {
|
|
||||||
isa = PBXCopyFilesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
dstPath = "";
|
|
||||||
dstSubfolderSpec = 13;
|
|
||||||
files = (
|
|
||||||
53BF83F42B0910510035E5BA /* HyperTab Extension.appex in Embed Foundation Extensions */,
|
|
||||||
);
|
|
||||||
name = "Embed Foundation Extensions";
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF842E2B0910510035E5BA /* Embed Foundation Extensions */ = {
|
|
||||||
isa = PBXCopyFilesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
dstPath = "";
|
|
||||||
dstSubfolderSpec = 13;
|
|
||||||
files = (
|
|
||||||
53BF83FE2B0910510035E5BA /* HyperTab Extension.appex in Embed Foundation Extensions */,
|
|
||||||
);
|
|
||||||
name = "Embed Foundation Extensions";
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXCopyFilesBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
|
||||||
53BF83C02B0910510035E5BA /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = Base; path = ../Base.lproj/Main.html; sourceTree = "<group>"; };
|
|
||||||
53BF83C12B0910510035E5BA /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
|
|
||||||
53BF83C22B0910510035E5BA /* Style.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = Style.css; sourceTree = "<group>"; };
|
|
||||||
53BF83C32B0910510035E5BA /* Script.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = Script.js; sourceTree = "<group>"; };
|
|
||||||
53BF83C42B0910510035E5BA /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
|
|
||||||
53BF83C52B0910510035E5BA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
|
||||||
53BF83C72B0910510035E5BA /* SafariWebExtensionHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SafariWebExtensionHandler.swift; sourceTree = "<group>"; };
|
|
||||||
53BF83C92B0910510035E5BA /* _locales */ = {isa = PBXFileReference; lastKnownFileType = folder; path = _locales; sourceTree = "<group>"; };
|
|
||||||
53BF83CA2B0910510035E5BA /* images */ = {isa = PBXFileReference; lastKnownFileType = folder; path = images; sourceTree = "<group>"; };
|
|
||||||
53BF83CB2B0910510035E5BA /* manifest.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = manifest.json; sourceTree = "<group>"; };
|
|
||||||
53BF83CC2B0910510035E5BA /* background.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = background.js; sourceTree = "<group>"; };
|
|
||||||
53BF83CD2B0910510035E5BA /* content.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = content.js; sourceTree = "<group>"; };
|
|
||||||
53BF83CE2B0910510035E5BA /* popup.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = popup.html; sourceTree = "<group>"; };
|
|
||||||
53BF83CF2B0910510035E5BA /* popup.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = popup.css; sourceTree = "<group>"; };
|
|
||||||
53BF83D02B0910510035E5BA /* popup.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = popup.js; sourceTree = "<group>"; };
|
|
||||||
53BF83D52B0910510035E5BA /* HyperTab.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HyperTab.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
||||||
53BF83D82B0910510035E5BA /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
|
||||||
53BF83DA2B0910510035E5BA /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
|
|
||||||
53BF83DD2B0910510035E5BA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
|
||||||
53BF83E02B0910510035E5BA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
|
||||||
53BF83E22B0910510035E5BA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
||||||
53BF83E72B0910510035E5BA /* HyperTab.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HyperTab.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
||||||
53BF83E92B0910510035E5BA /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
|
||||||
53BF83EC2B0910510035E5BA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
|
||||||
53BF83EE2B0910510035E5BA /* HyperTab.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = HyperTab.entitlements; sourceTree = "<group>"; };
|
|
||||||
53BF83F32B0910510035E5BA /* HyperTab Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "HyperTab Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
||||||
53BF83F82B0910510035E5BA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
||||||
53BF83FD2B0910510035E5BA /* HyperTab Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "HyperTab Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
||||||
53BF84022B0910510035E5BA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
||||||
53BF84032B0910510035E5BA /* HyperTab.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = HyperTab.entitlements; sourceTree = "<group>"; };
|
|
||||||
/* End PBXFileReference section */
|
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
|
||||||
53BF83D22B0910510035E5BA /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF83E42B0910510035E5BA /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF83F02B0910510035E5BA /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF83FA2B0910510035E5BA /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXFrameworksBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
|
||||||
53BF83B82B0910500035E5BA = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF83BD2B0910510035E5BA /* Shared (App) */,
|
|
||||||
53BF83C62B0910510035E5BA /* Shared (Extension) */,
|
|
||||||
53BF83D72B0910510035E5BA /* iOS (App) */,
|
|
||||||
53BF83E82B0910510035E5BA /* macOS (App) */,
|
|
||||||
53BF83F72B0910510035E5BA /* iOS (Extension) */,
|
|
||||||
53BF84012B0910510035E5BA /* macOS (Extension) */,
|
|
||||||
53BF83D62B0910510035E5BA /* Products */,
|
|
||||||
);
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83BD2B0910510035E5BA /* Shared (App) */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF83C42B0910510035E5BA /* ViewController.swift */,
|
|
||||||
53BF83C52B0910510035E5BA /* Assets.xcassets */,
|
|
||||||
53BF83BE2B0910510035E5BA /* Resources */,
|
|
||||||
);
|
|
||||||
path = "Shared (App)";
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83BE2B0910510035E5BA /* Resources */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF83BF2B0910510035E5BA /* Main.html */,
|
|
||||||
53BF83C12B0910510035E5BA /* Icon.png */,
|
|
||||||
53BF83C22B0910510035E5BA /* Style.css */,
|
|
||||||
53BF83C32B0910510035E5BA /* Script.js */,
|
|
||||||
);
|
|
||||||
path = Resources;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83C62B0910510035E5BA /* Shared (Extension) */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF83C72B0910510035E5BA /* SafariWebExtensionHandler.swift */,
|
|
||||||
53BF83C82B0910510035E5BA /* Resources */,
|
|
||||||
);
|
|
||||||
path = "Shared (Extension)";
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83C82B0910510035E5BA /* Resources */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF83C92B0910510035E5BA /* _locales */,
|
|
||||||
53BF83CA2B0910510035E5BA /* images */,
|
|
||||||
53BF83CB2B0910510035E5BA /* manifest.json */,
|
|
||||||
53BF83CC2B0910510035E5BA /* background.js */,
|
|
||||||
53BF83CD2B0910510035E5BA /* content.js */,
|
|
||||||
53BF83CE2B0910510035E5BA /* popup.html */,
|
|
||||||
53BF83CF2B0910510035E5BA /* popup.css */,
|
|
||||||
53BF83D02B0910510035E5BA /* popup.js */,
|
|
||||||
);
|
|
||||||
path = Resources;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83D62B0910510035E5BA /* Products */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF83D52B0910510035E5BA /* HyperTab.app */,
|
|
||||||
53BF83E72B0910510035E5BA /* HyperTab.app */,
|
|
||||||
53BF83F32B0910510035E5BA /* HyperTab Extension.appex */,
|
|
||||||
53BF83FD2B0910510035E5BA /* HyperTab Extension.appex */,
|
|
||||||
);
|
|
||||||
name = Products;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83D72B0910510035E5BA /* iOS (App) */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF83D82B0910510035E5BA /* AppDelegate.swift */,
|
|
||||||
53BF83DA2B0910510035E5BA /* SceneDelegate.swift */,
|
|
||||||
53BF83DC2B0910510035E5BA /* LaunchScreen.storyboard */,
|
|
||||||
53BF83DF2B0910510035E5BA /* Main.storyboard */,
|
|
||||||
53BF83E22B0910510035E5BA /* Info.plist */,
|
|
||||||
);
|
|
||||||
path = "iOS (App)";
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83E82B0910510035E5BA /* macOS (App) */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF83E92B0910510035E5BA /* AppDelegate.swift */,
|
|
||||||
53BF83EB2B0910510035E5BA /* Main.storyboard */,
|
|
||||||
53BF83EE2B0910510035E5BA /* HyperTab.entitlements */,
|
|
||||||
);
|
|
||||||
path = "macOS (App)";
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83F72B0910510035E5BA /* iOS (Extension) */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF83F82B0910510035E5BA /* Info.plist */,
|
|
||||||
);
|
|
||||||
path = "iOS (Extension)";
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF84012B0910510035E5BA /* macOS (Extension) */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
53BF84022B0910510035E5BA /* Info.plist */,
|
|
||||||
53BF84032B0910510035E5BA /* HyperTab.entitlements */,
|
|
||||||
);
|
|
||||||
path = "macOS (Extension)";
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
/* End PBXGroup section */
|
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
|
||||||
53BF83D42B0910510035E5BA /* HyperTab (iOS) */ = {
|
|
||||||
isa = PBXNativeTarget;
|
|
||||||
buildConfigurationList = 53BF84282B0910510035E5BA /* Build configuration list for PBXNativeTarget "HyperTab (iOS)" */;
|
|
||||||
buildPhases = (
|
|
||||||
53BF83D12B0910510035E5BA /* Sources */,
|
|
||||||
53BF83D22B0910510035E5BA /* Frameworks */,
|
|
||||||
53BF83D32B0910510035E5BA /* Resources */,
|
|
||||||
53BF84272B0910510035E5BA /* Embed Foundation Extensions */,
|
|
||||||
);
|
|
||||||
buildRules = (
|
|
||||||
);
|
|
||||||
dependencies = (
|
|
||||||
53BF83F62B0910510035E5BA /* PBXTargetDependency */,
|
|
||||||
);
|
|
||||||
name = "HyperTab (iOS)";
|
|
||||||
productName = "HyperTab (iOS)";
|
|
||||||
productReference = 53BF83D52B0910510035E5BA /* HyperTab.app */;
|
|
||||||
productType = "com.apple.product-type.application";
|
|
||||||
};
|
|
||||||
53BF83E62B0910510035E5BA /* HyperTab (macOS) */ = {
|
|
||||||
isa = PBXNativeTarget;
|
|
||||||
buildConfigurationList = 53BF842F2B0910510035E5BA /* Build configuration list for PBXNativeTarget "HyperTab (macOS)" */;
|
|
||||||
buildPhases = (
|
|
||||||
53BF83E32B0910510035E5BA /* Sources */,
|
|
||||||
53BF83E42B0910510035E5BA /* Frameworks */,
|
|
||||||
53BF83E52B0910510035E5BA /* Resources */,
|
|
||||||
53BF842E2B0910510035E5BA /* Embed Foundation Extensions */,
|
|
||||||
);
|
|
||||||
buildRules = (
|
|
||||||
);
|
|
||||||
dependencies = (
|
|
||||||
53BF84002B0910510035E5BA /* PBXTargetDependency */,
|
|
||||||
);
|
|
||||||
name = "HyperTab (macOS)";
|
|
||||||
productName = "HyperTab (macOS)";
|
|
||||||
productReference = 53BF83E72B0910510035E5BA /* HyperTab.app */;
|
|
||||||
productType = "com.apple.product-type.application";
|
|
||||||
};
|
|
||||||
53BF83F22B0910510035E5BA /* HyperTab Extension (iOS) */ = {
|
|
||||||
isa = PBXNativeTarget;
|
|
||||||
buildConfigurationList = 53BF84242B0910510035E5BA /* Build configuration list for PBXNativeTarget "HyperTab Extension (iOS)" */;
|
|
||||||
buildPhases = (
|
|
||||||
53BF83EF2B0910510035E5BA /* Sources */,
|
|
||||||
53BF83F02B0910510035E5BA /* Frameworks */,
|
|
||||||
53BF83F12B0910510035E5BA /* Resources */,
|
|
||||||
);
|
|
||||||
buildRules = (
|
|
||||||
);
|
|
||||||
dependencies = (
|
|
||||||
);
|
|
||||||
name = "HyperTab Extension (iOS)";
|
|
||||||
productName = "HyperTab Extension (iOS)";
|
|
||||||
productReference = 53BF83F32B0910510035E5BA /* HyperTab Extension.appex */;
|
|
||||||
productType = "com.apple.product-type.app-extension";
|
|
||||||
};
|
|
||||||
53BF83FC2B0910510035E5BA /* HyperTab Extension (macOS) */ = {
|
|
||||||
isa = PBXNativeTarget;
|
|
||||||
buildConfigurationList = 53BF842B2B0910510035E5BA /* Build configuration list for PBXNativeTarget "HyperTab Extension (macOS)" */;
|
|
||||||
buildPhases = (
|
|
||||||
53BF83F92B0910510035E5BA /* Sources */,
|
|
||||||
53BF83FA2B0910510035E5BA /* Frameworks */,
|
|
||||||
53BF83FB2B0910510035E5BA /* Resources */,
|
|
||||||
);
|
|
||||||
buildRules = (
|
|
||||||
);
|
|
||||||
dependencies = (
|
|
||||||
);
|
|
||||||
name = "HyperTab Extension (macOS)";
|
|
||||||
productName = "HyperTab Extension (macOS)";
|
|
||||||
productReference = 53BF83FD2B0910510035E5BA /* HyperTab Extension.appex */;
|
|
||||||
productType = "com.apple.product-type.app-extension";
|
|
||||||
};
|
|
||||||
/* End PBXNativeTarget section */
|
|
||||||
|
|
||||||
/* Begin PBXProject section */
|
|
||||||
53BF83B92B0910500035E5BA /* Project object */ = {
|
|
||||||
isa = PBXProject;
|
|
||||||
attributes = {
|
|
||||||
BuildIndependentTargetsInParallel = 1;
|
|
||||||
LastSwiftUpdateCheck = 1500;
|
|
||||||
LastUpgradeCheck = 1500;
|
|
||||||
TargetAttributes = {
|
|
||||||
53BF83D42B0910510035E5BA = {
|
|
||||||
CreatedOnToolsVersion = 15.0.1;
|
|
||||||
};
|
|
||||||
53BF83E62B0910510035E5BA = {
|
|
||||||
CreatedOnToolsVersion = 15.0.1;
|
|
||||||
};
|
|
||||||
53BF83F22B0910510035E5BA = {
|
|
||||||
CreatedOnToolsVersion = 15.0.1;
|
|
||||||
};
|
|
||||||
53BF83FC2B0910510035E5BA = {
|
|
||||||
CreatedOnToolsVersion = 15.0.1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
buildConfigurationList = 53BF83BC2B0910500035E5BA /* Build configuration list for PBXProject "HyperTab" */;
|
|
||||||
compatibilityVersion = "Xcode 14.0";
|
|
||||||
developmentRegion = en;
|
|
||||||
hasScannedForEncodings = 0;
|
|
||||||
knownRegions = (
|
|
||||||
en,
|
|
||||||
Base,
|
|
||||||
);
|
|
||||||
mainGroup = 53BF83B82B0910500035E5BA;
|
|
||||||
productRefGroup = 53BF83D62B0910510035E5BA /* Products */;
|
|
||||||
projectDirPath = "";
|
|
||||||
projectRoot = "";
|
|
||||||
targets = (
|
|
||||||
53BF83D42B0910510035E5BA /* HyperTab (iOS) */,
|
|
||||||
53BF83E62B0910510035E5BA /* HyperTab (macOS) */,
|
|
||||||
53BF83F22B0910510035E5BA /* HyperTab Extension (iOS) */,
|
|
||||||
53BF83FC2B0910510035E5BA /* HyperTab Extension (macOS) */,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
/* End PBXProject section */
|
|
||||||
|
|
||||||
/* Begin PBXResourcesBuildPhase section */
|
|
||||||
53BF83D32B0910510035E5BA /* Resources */ = {
|
|
||||||
isa = PBXResourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
53BF84062B0910510035E5BA /* Icon.png in Resources */,
|
|
||||||
53BF83DE2B0910510035E5BA /* LaunchScreen.storyboard in Resources */,
|
|
||||||
53BF84042B0910510035E5BA /* Main.html in Resources */,
|
|
||||||
53BF840A2B0910510035E5BA /* Script.js in Resources */,
|
|
||||||
53BF840E2B0910510035E5BA /* Assets.xcassets in Resources */,
|
|
||||||
53BF83E12B0910510035E5BA /* Main.storyboard in Resources */,
|
|
||||||
53BF84082B0910510035E5BA /* Style.css in Resources */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF83E52B0910510035E5BA /* Resources */ = {
|
|
||||||
isa = PBXResourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
53BF84072B0910510035E5BA /* Icon.png in Resources */,
|
|
||||||
53BF84092B0910510035E5BA /* Style.css in Resources */,
|
|
||||||
53BF83ED2B0910510035E5BA /* Main.storyboard in Resources */,
|
|
||||||
53BF840B2B0910510035E5BA /* Script.js in Resources */,
|
|
||||||
53BF840F2B0910510035E5BA /* Assets.xcassets in Resources */,
|
|
||||||
53BF84052B0910510035E5BA /* Main.html in Resources */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF83F12B0910510035E5BA /* Resources */ = {
|
|
||||||
isa = PBXResourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
53BF84182B0910510035E5BA /* background.js in Resources */,
|
|
||||||
53BF841E2B0910510035E5BA /* popup.css in Resources */,
|
|
||||||
53BF841C2B0910510035E5BA /* popup.html in Resources */,
|
|
||||||
53BF84142B0910510035E5BA /* images in Resources */,
|
|
||||||
53BF84162B0910510035E5BA /* manifest.json in Resources */,
|
|
||||||
53BF84122B0910510035E5BA /* _locales in Resources */,
|
|
||||||
53BF841A2B0910510035E5BA /* content.js in Resources */,
|
|
||||||
53BF84202B0910510035E5BA /* popup.js in Resources */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF83FB2B0910510035E5BA /* Resources */ = {
|
|
||||||
isa = PBXResourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
53BF84192B0910510035E5BA /* background.js in Resources */,
|
|
||||||
53BF841F2B0910510035E5BA /* popup.css in Resources */,
|
|
||||||
53BF841D2B0910510035E5BA /* popup.html in Resources */,
|
|
||||||
53BF84152B0910510035E5BA /* images in Resources */,
|
|
||||||
53BF84172B0910510035E5BA /* manifest.json in Resources */,
|
|
||||||
53BF84132B0910510035E5BA /* _locales in Resources */,
|
|
||||||
53BF841B2B0910510035E5BA /* content.js in Resources */,
|
|
||||||
53BF84212B0910510035E5BA /* popup.js in Resources */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXResourcesBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
|
||||||
53BF83D12B0910510035E5BA /* Sources */ = {
|
|
||||||
isa = PBXSourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
53BF840C2B0910510035E5BA /* ViewController.swift in Sources */,
|
|
||||||
53BF83D92B0910510035E5BA /* AppDelegate.swift in Sources */,
|
|
||||||
53BF83DB2B0910510035E5BA /* SceneDelegate.swift in Sources */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF83E32B0910510035E5BA /* Sources */ = {
|
|
||||||
isa = PBXSourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
53BF840D2B0910510035E5BA /* ViewController.swift in Sources */,
|
|
||||||
53BF83EA2B0910510035E5BA /* AppDelegate.swift in Sources */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF83EF2B0910510035E5BA /* Sources */ = {
|
|
||||||
isa = PBXSourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
53BF84102B0910510035E5BA /* SafariWebExtensionHandler.swift in Sources */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
53BF83F92B0910510035E5BA /* Sources */ = {
|
|
||||||
isa = PBXSourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
53BF84112B0910510035E5BA /* SafariWebExtensionHandler.swift in Sources */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXSourcesBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin PBXTargetDependency section */
|
|
||||||
53BF83F62B0910510035E5BA /* PBXTargetDependency */ = {
|
|
||||||
isa = PBXTargetDependency;
|
|
||||||
target = 53BF83F22B0910510035E5BA /* HyperTab Extension (iOS) */;
|
|
||||||
targetProxy = 53BF83F52B0910510035E5BA /* PBXContainerItemProxy */;
|
|
||||||
};
|
|
||||||
53BF84002B0910510035E5BA /* PBXTargetDependency */ = {
|
|
||||||
isa = PBXTargetDependency;
|
|
||||||
target = 53BF83FC2B0910510035E5BA /* HyperTab Extension (macOS) */;
|
|
||||||
targetProxy = 53BF83FF2B0910510035E5BA /* PBXContainerItemProxy */;
|
|
||||||
};
|
|
||||||
/* End PBXTargetDependency section */
|
|
||||||
|
|
||||||
/* Begin PBXVariantGroup section */
|
|
||||||
53BF83BF2B0910510035E5BA /* Main.html */ = {
|
|
||||||
isa = PBXVariantGroup;
|
|
||||||
children = (
|
|
||||||
53BF83C02B0910510035E5BA /* Base */,
|
|
||||||
);
|
|
||||||
name = Main.html;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83DC2B0910510035E5BA /* LaunchScreen.storyboard */ = {
|
|
||||||
isa = PBXVariantGroup;
|
|
||||||
children = (
|
|
||||||
53BF83DD2B0910510035E5BA /* Base */,
|
|
||||||
);
|
|
||||||
name = LaunchScreen.storyboard;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83DF2B0910510035E5BA /* Main.storyboard */ = {
|
|
||||||
isa = PBXVariantGroup;
|
|
||||||
children = (
|
|
||||||
53BF83E02B0910510035E5BA /* Base */,
|
|
||||||
);
|
|
||||||
name = Main.storyboard;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
53BF83EB2B0910510035E5BA /* Main.storyboard */ = {
|
|
||||||
isa = PBXVariantGroup;
|
|
||||||
children = (
|
|
||||||
53BF83EC2B0910510035E5BA /* Base */,
|
|
||||||
);
|
|
||||||
name = Main.storyboard;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
/* End PBXVariantGroup section */
|
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
|
||||||
53BF84222B0910510035E5BA /* Debug */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
|
||||||
CLANG_ENABLE_MODULES = YES;
|
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
|
||||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
||||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
||||||
CLANG_WARN_COMMA = YES;
|
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
||||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
||||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
||||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
|
||||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
||||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
||||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
||||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
|
||||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
||||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
||||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
||||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
||||||
COPY_PHASE_STRIP = NO;
|
|
||||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
||||||
ENABLE_TESTABILITY = YES;
|
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
|
||||||
GCC_NO_COMMON_BLOCKS = YES;
|
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
||||||
"DEBUG=1",
|
|
||||||
"$(inherited)",
|
|
||||||
);
|
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
||||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
||||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
|
||||||
MTL_FAST_MATH = YES;
|
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
|
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
53BF84232B0910510035E5BA /* Release */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
|
||||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
|
||||||
CLANG_ENABLE_MODULES = YES;
|
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
|
||||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
||||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
||||||
CLANG_WARN_COMMA = YES;
|
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
||||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
||||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
||||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
|
||||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
||||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
||||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
||||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
|
||||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
||||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
||||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
||||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
||||||
COPY_PHASE_STRIP = NO;
|
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
||||||
ENABLE_NS_ASSERTIONS = NO;
|
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
|
||||||
GCC_NO_COMMON_BLOCKS = YES;
|
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
||||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
||||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
|
||||||
MTL_FAST_MATH = YES;
|
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
53BF84252B0910510035E5BA /* Debug */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_FILE = "iOS (Extension)/Info.plist";
|
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = "HyperTab Extension";
|
|
||||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/Frameworks",
|
|
||||||
"@executable_path/../../Frameworks",
|
|
||||||
);
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
SafariServices,
|
|
||||||
);
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.heliosia.HyperTab.Extension;
|
|
||||||
PRODUCT_NAME = "HyperTab Extension";
|
|
||||||
SDKROOT = iphoneos;
|
|
||||||
SKIP_INSTALL = YES;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
53BF84262B0910510035E5BA /* Release */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_FILE = "iOS (Extension)/Info.plist";
|
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = "HyperTab Extension";
|
|
||||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/Frameworks",
|
|
||||||
"@executable_path/../../Frameworks",
|
|
||||||
);
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
SafariServices,
|
|
||||||
);
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.heliosia.HyperTab.Extension;
|
|
||||||
PRODUCT_NAME = "HyperTab Extension";
|
|
||||||
SDKROOT = iphoneos;
|
|
||||||
SKIP_INSTALL = YES;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
VALIDATE_PRODUCT = YES;
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
53BF84292B0910510035E5BA /* Debug */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_FILE = "iOS (App)/Info.plist";
|
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = HyperTab;
|
|
||||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
||||||
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
|
|
||||||
INFOPLIST_KEY_UIMainStoryboardFile = Main;
|
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/Frameworks",
|
|
||||||
);
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
SafariServices,
|
|
||||||
"-framework",
|
|
||||||
WebKit,
|
|
||||||
);
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.heliosia.HyperTab;
|
|
||||||
PRODUCT_NAME = HyperTab;
|
|
||||||
SDKROOT = iphoneos;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
53BF842A2B0910510035E5BA /* Release */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_FILE = "iOS (App)/Info.plist";
|
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = HyperTab;
|
|
||||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
||||||
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
|
|
||||||
INFOPLIST_KEY_UIMainStoryboardFile = Main;
|
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/Frameworks",
|
|
||||||
);
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
SafariServices,
|
|
||||||
"-framework",
|
|
||||||
WebKit,
|
|
||||||
);
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.heliosia.HyperTab;
|
|
||||||
PRODUCT_NAME = HyperTab;
|
|
||||||
SDKROOT = iphoneos;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
|
||||||
VALIDATE_PRODUCT = YES;
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
53BF842C2B0910510035E5BA /* Debug */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/HyperTab.entitlements";
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_FILE = "macOS (Extension)/Info.plist";
|
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = "HyperTab Extension";
|
|
||||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/../Frameworks",
|
|
||||||
"@executable_path/../../../../Frameworks",
|
|
||||||
);
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
SafariServices,
|
|
||||||
);
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.heliosia.HyperTab.Extension;
|
|
||||||
PRODUCT_NAME = "HyperTab Extension";
|
|
||||||
SDKROOT = macosx;
|
|
||||||
SKIP_INSTALL = YES;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
53BF842D2B0910510035E5BA /* Release */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/HyperTab.entitlements";
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_FILE = "macOS (Extension)/Info.plist";
|
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = "HyperTab Extension";
|
|
||||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/../Frameworks",
|
|
||||||
"@executable_path/../../../../Frameworks",
|
|
||||||
);
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
SafariServices,
|
|
||||||
);
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.heliosia.HyperTab.Extension;
|
|
||||||
PRODUCT_NAME = "HyperTab Extension";
|
|
||||||
SDKROOT = macosx;
|
|
||||||
SKIP_INSTALL = YES;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
53BF84302B0910510035E5BA /* Debug */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
||||||
CODE_SIGN_ENTITLEMENTS = "macOS (App)/HyperTab.entitlements";
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = HyperTab;
|
|
||||||
INFOPLIST_KEY_NSMainStoryboardFile = Main;
|
|
||||||
INFOPLIST_KEY_NSPrincipalClass = NSApplication;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/../Frameworks",
|
|
||||||
);
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
SafariServices,
|
|
||||||
"-framework",
|
|
||||||
WebKit,
|
|
||||||
);
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.heliosia.HyperTab;
|
|
||||||
PRODUCT_NAME = HyperTab;
|
|
||||||
SDKROOT = macosx;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
53BF84312B0910510035E5BA /* Release */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
||||||
CODE_SIGN_ENTITLEMENTS = "macOS (App)/HyperTab.entitlements";
|
|
||||||
CODE_SIGN_STYLE = Automatic;
|
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = HyperTab;
|
|
||||||
INFOPLIST_KEY_NSMainStoryboardFile = Main;
|
|
||||||
INFOPLIST_KEY_NSPrincipalClass = NSApplication;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"@executable_path/../Frameworks",
|
|
||||||
);
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
|
||||||
MARKETING_VERSION = 1.0;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
SafariServices,
|
|
||||||
"-framework",
|
|
||||||
WebKit,
|
|
||||||
);
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = net.heliosia.HyperTab;
|
|
||||||
PRODUCT_NAME = HyperTab;
|
|
||||||
SDKROOT = macosx;
|
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
||||||
SWIFT_VERSION = 5.0;
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
/* End XCBuildConfiguration section */
|
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
|
||||||
53BF83BC2B0910500035E5BA /* Build configuration list for PBXProject "HyperTab" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
53BF84222B0910510035E5BA /* Debug */,
|
|
||||||
53BF84232B0910510035E5BA /* Release */,
|
|
||||||
);
|
|
||||||
defaultConfigurationIsVisible = 0;
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
53BF84242B0910510035E5BA /* Build configuration list for PBXNativeTarget "HyperTab Extension (iOS)" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
53BF84252B0910510035E5BA /* Debug */,
|
|
||||||
53BF84262B0910510035E5BA /* Release */,
|
|
||||||
);
|
|
||||||
defaultConfigurationIsVisible = 0;
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
53BF84282B0910510035E5BA /* Build configuration list for PBXNativeTarget "HyperTab (iOS)" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
53BF84292B0910510035E5BA /* Debug */,
|
|
||||||
53BF842A2B0910510035E5BA /* Release */,
|
|
||||||
);
|
|
||||||
defaultConfigurationIsVisible = 0;
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
53BF842B2B0910510035E5BA /* Build configuration list for PBXNativeTarget "HyperTab Extension (macOS)" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
53BF842C2B0910510035E5BA /* Debug */,
|
|
||||||
53BF842D2B0910510035E5BA /* Release */,
|
|
||||||
);
|
|
||||||
defaultConfigurationIsVisible = 0;
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
53BF842F2B0910510035E5BA /* Build configuration list for PBXNativeTarget "HyperTab (macOS)" */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
53BF84302B0910510035E5BA /* Debug */,
|
|
||||||
53BF84312B0910510035E5BA /* Release */,
|
|
||||||
);
|
|
||||||
defaultConfigurationIsVisible = 0;
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
/* End XCConfigurationList section */
|
|
||||||
};
|
|
||||||
rootObject = 53BF83B92B0910500035E5BA /* Project object */;
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Workspace
|
|
||||||
version = "1.0">
|
|
||||||
<FileRef
|
|
||||||
location = "self:">
|
|
||||||
</FileRef>
|
|
||||||
</Workspace>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
<?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>IDEDidComputeMac32BitWarning</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
<?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>SchemeUserState</key>
|
|
||||||
<dict>
|
|
||||||
<key>HyperTab (iOS).xcscheme_^#shared#^_</key>
|
|
||||||
<dict>
|
|
||||||
<key>orderHint</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
</dict>
|
|
||||||
<key>HyperTab (macOS).xcscheme_^#shared#^_</key>
|
|
||||||
<dict>
|
|
||||||
<key>orderHint</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"colors" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
{
|
|
||||||
"images" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"platform" : "ios",
|
|
||||||
"size" : "1024x1024"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "1x",
|
|
||||||
"size" : "16x16"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "2x",
|
|
||||||
"size" : "16x16"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "1x",
|
|
||||||
"size" : "32x32"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "2x",
|
|
||||||
"size" : "32x32"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "1x",
|
|
||||||
"size" : "128x128"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "2x",
|
|
||||||
"size" : "128x128"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "1x",
|
|
||||||
"size" : "256x256"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "2x",
|
|
||||||
"size" : "256x256"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "1x",
|
|
||||||
"size" : "512x512"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "mac",
|
|
||||||
"scale" : "2x",
|
|
||||||
"size" : "512x512"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"images" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"scale" : "1x"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"scale" : "2x"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"scale" : "3x"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">
|
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../Style.css">
|
|
||||||
<script src="../Script.js" defer></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<img src="../Icon.png" width="128" height="128" alt="HyperTab Icon">
|
|
||||||
<p class="platform-ios">You can turn on HyperTab’s Safari extension in Settings.</p>
|
|
||||||
<p class="platform-mac state-unknown">You can turn on HyperTab’s extension in Safari Extensions preferences.</p>
|
|
||||||
<p class="platform-mac state-on">HyperTab’s extension is currently on. You can turn it off in Safari Extensions preferences.</p>
|
|
||||||
<p class="platform-mac state-off">HyperTab’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>
|
|
||||||
|
Before Width: | Height: | Size: 98 KiB |
@@ -1,24 +0,0 @@
|
|||||||
function show(platform, enabled, useSettingsInsteadOfPreferences) {
|
|
||||||
document.body.classList.add(`platform-${platform}`);
|
|
||||||
|
|
||||||
if (useSettingsInsteadOfPreferences) {
|
|
||||||
document.getElementsByClassName('platform-mac state-on')[0].innerText = "HyperTab’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 = "HyperTab’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 HyperTab’s extension in the Extensions section of Safari Settings.";
|
|
||||||
document.getElementsByClassName('platform-mac open-preferences')[0].innerText = "Quit and Open Safari Settings…";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof enabled === "boolean") {
|
|
||||||
document.body.classList.toggle(`state-on`, enabled);
|
|
||||||
document.body.classList.toggle(`state-off`, !enabled);
|
|
||||||
} else {
|
|
||||||
document.body.classList.remove(`state-on`);
|
|
||||||
document.body.classList.remove(`state-off`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function openPreferences() {
|
|
||||||
webkit.messageHandlers.controller.postMessage("open-preferences");
|
|
||||||
}
|
|
||||||
|
|
||||||
document.querySelector("button.open-preferences").addEventListener("click", openPreferences);
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
* {
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-webkit-user-drag: none;
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
|
||||||
color-scheme: light dark;
|
|
||||||
|
|
||||||
--spacing: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
gap: var(--spacing);
|
|
||||||
margin: 0 calc(var(--spacing) * 2);
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
font: -apple-system-short-body;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
body:not(.platform-mac, .platform-ios) :is(.platform-mac, .platform-ios) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.platform-ios .platform-mac {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.platform-mac .platform-ios {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.platform-ios .platform-mac {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
body:not(.state-on, .state-off) :is(.state-on, .state-off) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.state-on :is(.state-off, .state-unknown) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.state-off :is(.state-on, .state-unknown) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
//
|
|
||||||
// ViewController.swift
|
|
||||||
// Shared (App)
|
|
||||||
//
|
|
||||||
// Created by Nicholas Comer on 11/18/23.
|
|
||||||
//
|
|
||||||
|
|
||||||
import WebKit
|
|
||||||
|
|
||||||
#if os(iOS)
|
|
||||||
import UIKit
|
|
||||||
typealias PlatformViewController = UIViewController
|
|
||||||
#elseif os(macOS)
|
|
||||||
import Cocoa
|
|
||||||
import SafariServices
|
|
||||||
typealias PlatformViewController = NSViewController
|
|
||||||
#endif
|
|
||||||
|
|
||||||
let extensionBundleIdentifier = "net.heliosia.HyperTab.Extension"
|
|
||||||
|
|
||||||
class ViewController: PlatformViewController, WKNavigationDelegate, WKScriptMessageHandler {
|
|
||||||
|
|
||||||
@IBOutlet var webView: WKWebView!
|
|
||||||
|
|
||||||
override func viewDidLoad() {
|
|
||||||
super.viewDidLoad()
|
|
||||||
|
|
||||||
self.webView.navigationDelegate = self
|
|
||||||
|
|
||||||
#if os(iOS)
|
|
||||||
self.webView.scrollView.isScrollEnabled = false
|
|
||||||
#endif
|
|
||||||
|
|
||||||
self.webView.configuration.userContentController.add(self, name: "controller")
|
|
||||||
|
|
||||||
self.webView.loadFileURL(Bundle.main.url(forResource: "Main", withExtension: "html")!, allowingReadAccessTo: Bundle.main.resourceURL!)
|
|
||||||
}
|
|
||||||
|
|
||||||
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
|
|
||||||
#if os(iOS)
|
|
||||||
webView.evaluateJavaScript("show('ios')")
|
|
||||||
#elseif os(macOS)
|
|
||||||
webView.evaluateJavaScript("show('mac')")
|
|
||||||
|
|
||||||
SFSafariExtensionManager.getStateOfSafariExtension(withIdentifier: extensionBundleIdentifier) { (state, error) in
|
|
||||||
guard let state = state, error == nil else {
|
|
||||||
// Insert code to inform the user that something went wrong.
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
|
||||||
if #available(macOS 13, *) {
|
|
||||||
webView.evaluateJavaScript("show('mac', \(state.isEnabled), true)")
|
|
||||||
} else {
|
|
||||||
webView.evaluateJavaScript("show('mac', \(state.isEnabled), false)")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
|
|
||||||
#if os(macOS)
|
|
||||||
if (message.body as! String != "open-preferences") {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
SFSafariApplication.showPreferencesForExtension(withIdentifier: extensionBundleIdentifier) { error in
|
|
||||||
guard error == nil else {
|
|
||||||
// Insert code to inform the user that something went wrong.
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
|
||||||
NSApp.terminate(self)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
|
||||||
console.log("Received request: ", request);
|
|
||||||
|
|
||||||
if (request.greeting === "hello")
|
|
||||||
sendResponse({ farewell: "goodbye" });
|
|
||||||
});
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
browser.runtime.sendMessage({ greeting: "hello" }).then((response) => {
|
|
||||||
console.log("Received response: ", response);
|
|
||||||
});
|
|
||||||
|
|
||||||
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
|
||||||
console.log("Received request: ", request);
|
|
||||||
});
|
|
||||||
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 454 B |
|
Before Width: | Height: | Size: 569 B |
|
Before Width: | Height: | Size: 919 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
@@ -1,39 +0,0 @@
|
|||||||
{
|
|
||||||
"manifest_version": 3,
|
|
||||||
"default_locale": "en",
|
|
||||||
|
|
||||||
"name": "__MSG_extension_name__",
|
|
||||||
"description": "__MSG_extension_description__",
|
|
||||||
"version": "1.0",
|
|
||||||
|
|
||||||
"icons": {
|
|
||||||
"48": "images/icon-48.png",
|
|
||||||
"96": "images/icon-96.png",
|
|
||||||
"128": "images/icon-128.png",
|
|
||||||
"256": "images/icon-256.png",
|
|
||||||
"512": "images/icon-512.png"
|
|
||||||
},
|
|
||||||
|
|
||||||
"background": {
|
|
||||||
"service_worker": "background.js"
|
|
||||||
},
|
|
||||||
|
|
||||||
"content_scripts": [{
|
|
||||||
"js": [ "content.js" ],
|
|
||||||
"matches": [ "*://example.com/*" ]
|
|
||||||
}],
|
|
||||||
|
|
||||||
"action": {
|
|
||||||
"default_popup": "popup.html",
|
|
||||||
"default_icon": {
|
|
||||||
"16": "images/toolbar-icon-16.png",
|
|
||||||
"19": "images/toolbar-icon-19.png",
|
|
||||||
"32": "images/toolbar-icon-32.png",
|
|
||||||
"38": "images/toolbar-icon-38.png",
|
|
||||||
"48": "images/toolbar-icon-48.png",
|
|
||||||
"72": "images/toolbar-icon-72.png"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"permissions": [ ]
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
:root {
|
|
||||||
color-scheme: light dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
width: 100px;
|
|
||||||
padding: 10px;
|
|
||||||
|
|
||||||
font-family: system-ui;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
/* Dark Mode styles go here. */
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<link rel="stylesheet" href="popup.css">
|
|
||||||
<script type="module" src="popup.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<strong>Hello World!</strong>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
console.log("Hello World!", browser);
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
//
|
|
||||||
// SafariWebExtensionHandler.swift
|
|
||||||
// Shared (Extension)
|
|
||||||
//
|
|
||||||
// Created by Nicholas Comer on 11/18/23.
|
|
||||||
//
|
|
||||||
|
|
||||||
import SafariServices
|
|
||||||
import os.log
|
|
||||||
|
|
||||||
class SafariWebExtensionHandler: NSObject, NSExtensionRequestHandling {
|
|
||||||
|
|
||||||
func beginRequest(with context: NSExtensionContext) {
|
|
||||||
let request = context.inputItems.first as? NSExtensionItem
|
|
||||||
|
|
||||||
let profile: UUID?
|
|
||||||
if #available(iOS 17.0, macOS 14.0, *) {
|
|
||||||
profile = request?.userInfo?[SFExtensionProfileKey] as? UUID
|
|
||||||
} else {
|
|
||||||
profile = request?.userInfo?["profile"] as? UUID
|
|
||||||
}
|
|
||||||
|
|
||||||
let message: Any?
|
|
||||||
if #available(iOS 17.0, macOS 14.0, *) {
|
|
||||||
message = request?.userInfo?[SFExtensionMessageKey]
|
|
||||||
} else {
|
|
||||||
message = request?.userInfo?["message"]
|
|
||||||
}
|
|
||||||
|
|
||||||
os_log(.default, "Received message from browser.runtime.sendNativeMessage: %@ (profile: %@)", String(describing: message), profile?.uuidString ?? "none")
|
|
||||||
|
|
||||||
let response = NSExtensionItem()
|
|
||||||
response.userInfo = [ SFExtensionMessageKey: [ "echo": message ] ]
|
|
||||||
|
|
||||||
context.completeRequest(returningItems: [ response ], completionHandler: nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
"description": "The display name for the extension."
|
"description": "The display name for the extension."
|
||||||
},
|
},
|
||||||
"extension_description": {
|
"extension_description": {
|
||||||
"message": "This is HyperTab. You should tell us what your extension does here.",
|
"message": "Quick Tab Search and Switch for Safari",
|
||||||
"description": "Description of what the extension does."
|
"description": "Description of what the extension does."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
//
|
|
||||||
// AppDelegate.swift
|
|
||||||
// iOS (App)
|
|
||||||
//
|
|
||||||
// Created by Nicholas Comer on 11/18/23.
|
|
||||||
//
|
|
||||||
|
|
||||||
import UIKit
|
|
||||||
|
|
||||||
@main
|
|
||||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
||||||
|
|
||||||
var window: UIWindow?
|
|
||||||
|
|
||||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
|
||||||
// Override point for customization after application launch.
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
|
|
||||||
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19085" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
|
||||||
<dependencies>
|
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19082"/>
|
|
||||||
<capability name="Image references" minToolsVersion="12.0"/>
|
|
||||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
||||||
</dependencies>
|
|
||||||
<scenes>
|
|
||||||
<!--View Controller-->
|
|
||||||
<scene sceneID="EHf-IW-A2E">
|
|
||||||
<objects>
|
|
||||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
|
||||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<subviews>
|
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6HG-Um-bch">
|
|
||||||
<rect key="frame" x="142" y="385" width="128" height="128"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
|
|
||||||
<imageReference key="image" image="LargeIcon"/>
|
|
||||||
</imageView>
|
|
||||||
</subviews>
|
|
||||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
|
||||||
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
|
|
||||||
</view>
|
|
||||||
</viewController>
|
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
||||||
</objects>
|
|
||||||
<point key="canvasLocation" x="53" y="375"/>
|
|
||||||
</scene>
|
|
||||||
</scenes>
|
|
||||||
<resources>
|
|
||||||
<image name="LargeIcon" width="128" height="128"/>
|
|
||||||
</resources>
|
|
||||||
</document>
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
|
||||||
<device id="retina6_1" orientation="portrait" appearance="light"/>
|
|
||||||
<dependencies>
|
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
|
|
||||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
||||||
</dependencies>
|
|
||||||
<scenes>
|
|
||||||
<!--View Controller-->
|
|
||||||
<scene sceneID="tne-QT-ifu">
|
|
||||||
<objects>
|
|
||||||
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
|
|
||||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<subviews>
|
|
||||||
<wkWebView contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="RDB-ib-igF">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<wkWebViewConfiguration key="configuration">
|
|
||||||
<audiovisualMediaTypes key="mediaTypesRequiringUserActionForPlayback" none="YES"/>
|
|
||||||
<wkPreferences key="preferences"/>
|
|
||||||
</wkWebViewConfiguration>
|
|
||||||
</wkWebView>
|
|
||||||
</subviews>
|
|
||||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
|
||||||
</view>
|
|
||||||
<connections>
|
|
||||||
<outlet property="webView" destination="RDB-ib-igF" id="avx-RC-qRB"/>
|
|
||||||
</connections>
|
|
||||||
</viewController>
|
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
|
||||||
</objects>
|
|
||||||
<point key="canvasLocation" x="53" y="375"/>
|
|
||||||
</scene>
|
|
||||||
</scenes>
|
|
||||||
</document>
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
<?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>UIApplicationSceneManifest</key>
|
|
||||||
<dict>
|
|
||||||
<key>UIApplicationSupportsMultipleScenes</key>
|
|
||||||
<false/>
|
|
||||||
<key>UISceneConfigurations</key>
|
|
||||||
<dict>
|
|
||||||
<key>UIWindowSceneSessionRoleApplication</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>UISceneConfigurationName</key>
|
|
||||||
<string>Default Configuration</string>
|
|
||||||
<key>UISceneDelegateClassName</key>
|
|
||||||
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
|
|
||||||
<key>UISceneStoryboardFile</key>
|
|
||||||
<string>Main</string>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
//
|
|
||||||
// SceneDelegate.swift
|
|
||||||
// iOS (App)
|
|
||||||
//
|
|
||||||
// Created by Nicholas Comer on 11/18/23.
|
|
||||||
//
|
|
||||||
|
|
||||||
import UIKit
|
|
||||||
|
|
||||||
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
||||||
|
|
||||||
var window: UIWindow?
|
|
||||||
|
|
||||||
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
|
||||||
guard let _ = (scene as? UIWindowScene) else { return }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<?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>NSExtension</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSExtensionPointIdentifier</key>
|
|
||||||
<string>com.apple.Safari.web-extension</string>
|
|
||||||
<key>NSExtensionPrincipalClass</key>
|
|
||||||
<string>$(PRODUCT_MODULE_NAME).SafariWebExtensionHandler</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
BIN
images/icon-128.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
images/icon-256.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
images/icon-48.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
images/icon-512.png
Normal file
|
After Width: | Height: | Size: 103 KiB |
BIN
images/icon-64.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
images/icon-96.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
images/toolbar-icon-16.png
Executable file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
images/toolbar-icon-19.png
Executable file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
images/toolbar-icon-32.png
Executable file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
images/toolbar-icon-38.png
Executable file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
images/toolbar-icon-48.png
Executable file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
images/toolbar-icon-72.png
Executable file
|
After Width: | Height: | Size: 2.9 KiB |
@@ -1,21 +0,0 @@
|
|||||||
//
|
|
||||||
// AppDelegate.swift
|
|
||||||
// macOS (App)
|
|
||||||
//
|
|
||||||
// Created by Nicholas Comer on 11/18/23.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Cocoa
|
|
||||||
|
|
||||||
@main
|
|
||||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
|
||||||
|
|
||||||
func applicationDidFinishLaunching(_ notification: Notification) {
|
|
||||||
// Override point for customization after application launch.
|
|
||||||
}
|
|
||||||
|
|
||||||
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19085" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
|
|
||||||
<dependencies>
|
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19085"/>
|
|
||||||
<plugIn identifier="com.apple.WebKit2IBPlugin" version="19085"/>
|
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
||||||
</dependencies>
|
|
||||||
<scenes>
|
|
||||||
<!--Application-->
|
|
||||||
<scene sceneID="JPo-4y-FX3">
|
|
||||||
<objects>
|
|
||||||
<application id="hnw-xV-0zn" sceneMemberID="viewController">
|
|
||||||
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
|
|
||||||
<items>
|
|
||||||
<menuItem title="HyperTab" id="1Xt-HY-uBw">
|
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
|
||||||
<menu key="submenu" title="HyperTab" systemMenu="apple" id="uQy-DD-JDr">
|
|
||||||
<items>
|
|
||||||
<menuItem title="About HyperTab" 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 HyperTab" keyEquivalent="h" id="Olw-nP-bQN">
|
|
||||||
<connections>
|
|
||||||
<action selector="hide:" target="Ady-hI-5gd" id="PnN-Uc-m68"/>
|
|
||||||
</connections>
|
|
||||||
</menuItem>
|
|
||||||
<menuItem title="Hide Others" keyEquivalent="h" id="Vdr-fp-XzO">
|
|
||||||
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
|
|
||||||
<connections>
|
|
||||||
<action selector="hideOtherApplications:" target="Ady-hI-5gd" id="VT4-aY-XCT"/>
|
|
||||||
</connections>
|
|
||||||
</menuItem>
|
|
||||||
<menuItem title="Show All" id="Kd2-mp-pUS">
|
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
|
||||||
<connections>
|
|
||||||
<action selector="unhideAllApplications:" target="Ady-hI-5gd" id="Dhg-Le-xox"/>
|
|
||||||
</connections>
|
|
||||||
</menuItem>
|
|
||||||
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
|
|
||||||
<menuItem title="Quit HyperTab" keyEquivalent="q" id="4sb-4s-VLi">
|
|
||||||
<connections>
|
|
||||||
<action selector="terminate:" target="Ady-hI-5gd" id="Te7-pn-YzF"/>
|
|
||||||
</connections>
|
|
||||||
</menuItem>
|
|
||||||
</items>
|
|
||||||
</menu>
|
|
||||||
</menuItem>
|
|
||||||
<menuItem title="Help" id="wpr-3q-Mcd">
|
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
|
||||||
<menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
|
|
||||||
<items>
|
|
||||||
<menuItem title="HyperTab Help" keyEquivalent="?" id="FKE-Sm-Kum">
|
|
||||||
<connections>
|
|
||||||
<action selector="showHelp:" target="Ady-hI-5gd" id="y7X-2Q-9no"/>
|
|
||||||
</connections>
|
|
||||||
</menuItem>
|
|
||||||
</items>
|
|
||||||
</menu>
|
|
||||||
</menuItem>
|
|
||||||
</items>
|
|
||||||
</menu>
|
|
||||||
<connections>
|
|
||||||
<outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
|
|
||||||
</connections>
|
|
||||||
</application>
|
|
||||||
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModuleProvider="target"/>
|
|
||||||
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
|
|
||||||
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
|
||||||
</objects>
|
|
||||||
<point key="canvasLocation" x="76" y="-134"/>
|
|
||||||
</scene>
|
|
||||||
<!--Window Controller-->
|
|
||||||
<scene sceneID="R2V-B0-nI4">
|
|
||||||
<objects>
|
|
||||||
<windowController showSeguePresentationStyle="single" id="B8D-0N-5wS" sceneMemberID="viewController">
|
|
||||||
<window key="window" title="HyperTab" 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"/>
|
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
|
|
||||||
<connections>
|
|
||||||
<outlet property="delegate" destination="B8D-0N-5wS" id="98r-iN-zZc"/>
|
|
||||||
</connections>
|
|
||||||
</window>
|
|
||||||
<connections>
|
|
||||||
<segue destination="XfG-lQ-9wD" kind="relationship" relationship="window.shadowedContentViewController" id="cq2-FE-JQM"/>
|
|
||||||
</connections>
|
|
||||||
</windowController>
|
|
||||||
<customObject id="Oky-zY-oP4" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
|
||||||
</objects>
|
|
||||||
<point key="canvasLocation" x="75" y="250"/>
|
|
||||||
</scene>
|
|
||||||
<!--View Controller-->
|
|
||||||
<scene sceneID="hIz-AP-VOD">
|
|
||||||
<objects>
|
|
||||||
<viewController id="XfG-lQ-9wD" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
|
|
||||||
<view key="view" id="m2S-Jp-Qdl">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="425" height="325"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
<subviews>
|
|
||||||
<wkWebView wantsLayer="YES" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="eOr-cG-IQY">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="425" height="325"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<wkWebViewConfiguration key="configuration">
|
|
||||||
<audiovisualMediaTypes key="mediaTypesRequiringUserActionForPlayback" none="YES"/>
|
|
||||||
<wkPreferences key="preferences"/>
|
|
||||||
</wkWebViewConfiguration>
|
|
||||||
</wkWebView>
|
|
||||||
</subviews>
|
|
||||||
</view>
|
|
||||||
<connections>
|
|
||||||
<outlet property="webView" destination="eOr-cG-IQY" id="GFe-mU-dBY"/>
|
|
||||||
</connections>
|
|
||||||
</viewController>
|
|
||||||
<customObject id="rPt-NT-nkU" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
|
||||||
</objects>
|
|
||||||
<point key="canvasLocation" x="75" y="655"/>
|
|
||||||
</scene>
|
|
||||||
</scenes>
|
|
||||||
</document>
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<?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.files.user-selected.read-only</key>
|
|
||||||
<true/>
|
|
||||||
<key>com.apple.security.network.client</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?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.files.user-selected.read-only</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<?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>NSExtension</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSExtensionPointIdentifier</key>
|
|
||||||
<string>com.apple.Safari.web-extension</string>
|
|
||||||
<key>NSExtensionPrincipalClass</key>
|
|
||||||
<string>$(PRODUCT_MODULE_NAME).SafariWebExtensionHandler</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
40
manifest.json
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"manifest_version": 2,
|
||||||
|
"default_locale": "en",
|
||||||
|
|
||||||
|
"name": "HyperTab",
|
||||||
|
"description": "Quick tabs search and switch",
|
||||||
|
"version": "0.1",
|
||||||
|
|
||||||
|
"icons": {
|
||||||
|
"48": "images/icon-48.png",
|
||||||
|
"96": "images/icon-96.png",
|
||||||
|
"128": "images/icon-128.png",
|
||||||
|
"256": "images/icon-256.png",
|
||||||
|
"512": "images/icon-512.png"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"scripts": ["dist/bg/main.js"]
|
||||||
|
},
|
||||||
|
"commands": {
|
||||||
|
"openTabSwitcher": {
|
||||||
|
"suggested_key": {
|
||||||
|
"default": "Ctrl+Shift+E"
|
||||||
|
},
|
||||||
|
"description": "Open HyperTab Switcher"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"browser_action": {
|
||||||
|
"default_popup": "popup.html",
|
||||||
|
"default_icon": {
|
||||||
|
"16": "images/toolbar-icon-16.png",
|
||||||
|
"19": "images/toolbar-icon-19.png",
|
||||||
|
"32": "images/toolbar-icon-32.png",
|
||||||
|
"38": "images/toolbar-icon-38.png",
|
||||||
|
"48": "images/toolbar-icon-48.png",
|
||||||
|
"72": "images/toolbar-icon-72.png"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"permissions": ["tabs", "*://*/*"]
|
||||||
|
}
|
||||||
1874
package-lock.json
generated
Normal file
27
package.json
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rm -rf dist",
|
||||||
|
"dev": "npm run clean && run-p dev:**",
|
||||||
|
"dev:bg": "esbuild --bundle ./src/background/main.ts --outdir=dist/bg --sourcemap --watch",
|
||||||
|
"dev:popup": "esbuild --bundle ./src/popup/main.tsx --outdir=dist/popup --sourcemap --watch",
|
||||||
|
"build": "npm run clean && run-p build:**",
|
||||||
|
"build:bg": "esbuild --bundle ./src/background/main.ts --outdir=dist/bg --minify",
|
||||||
|
"build:popup": "esbuild --bundle ./src/popup/main.tsx --outdir=dist/popup --minify"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/chrome": "^0.0.251",
|
||||||
|
"esbuild": "^0.19.5",
|
||||||
|
"npm-run-all": "^4.1.5",
|
||||||
|
"typescript": "^5.2.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/lodash.uniq": "^4.5.9",
|
||||||
|
"@types/react": "^18.2.37",
|
||||||
|
"@types/react-dom": "^18.2.15",
|
||||||
|
"fuse.js": "^7.0.0",
|
||||||
|
"lodash.uniq": "^4.5.0",
|
||||||
|
"react": "^18.2.0",
|
||||||
|
"react-dom": "^18.2.0",
|
||||||
|
"react-hotkeys-hook": "^4.4.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
145
popup.css
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
html,
|
||||||
|
body,
|
||||||
|
div,
|
||||||
|
span,
|
||||||
|
applet,
|
||||||
|
object,
|
||||||
|
iframe,
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
|
p,
|
||||||
|
blockquote,
|
||||||
|
pre,
|
||||||
|
a,
|
||||||
|
abbr,
|
||||||
|
acronym,
|
||||||
|
address,
|
||||||
|
big,
|
||||||
|
cite,
|
||||||
|
code,
|
||||||
|
del,
|
||||||
|
dfn,
|
||||||
|
em,
|
||||||
|
img,
|
||||||
|
ins,
|
||||||
|
kbd,
|
||||||
|
q,
|
||||||
|
s,
|
||||||
|
samp,
|
||||||
|
small,
|
||||||
|
strike,
|
||||||
|
strong,
|
||||||
|
sub,
|
||||||
|
sup,
|
||||||
|
tt,
|
||||||
|
var,
|
||||||
|
b,
|
||||||
|
u,
|
||||||
|
i,
|
||||||
|
center,
|
||||||
|
dl,
|
||||||
|
dt,
|
||||||
|
dd,
|
||||||
|
ol,
|
||||||
|
ul,
|
||||||
|
li,
|
||||||
|
fieldset,
|
||||||
|
form,
|
||||||
|
label,
|
||||||
|
legend,
|
||||||
|
table,
|
||||||
|
caption,
|
||||||
|
tbody,
|
||||||
|
tfoot,
|
||||||
|
thead,
|
||||||
|
tr,
|
||||||
|
th,
|
||||||
|
td,
|
||||||
|
article,
|
||||||
|
aside,
|
||||||
|
canvas,
|
||||||
|
details,
|
||||||
|
embed,
|
||||||
|
figure,
|
||||||
|
figcaption,
|
||||||
|
footer,
|
||||||
|
header,
|
||||||
|
hgroup,
|
||||||
|
menu,
|
||||||
|
nav,
|
||||||
|
output,
|
||||||
|
ruby,
|
||||||
|
section,
|
||||||
|
summary,
|
||||||
|
time,
|
||||||
|
mark,
|
||||||
|
audio,
|
||||||
|
video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
font: inherit;
|
||||||
|
vertical-align: baseline
|
||||||
|
}
|
||||||
|
|
||||||
|
article,
|
||||||
|
aside,
|
||||||
|
details,
|
||||||
|
figcaption,
|
||||||
|
figure,
|
||||||
|
footer,
|
||||||
|
header,
|
||||||
|
hgroup,
|
||||||
|
menu,
|
||||||
|
nav,
|
||||||
|
section {
|
||||||
|
display: block
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
line-height: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
ol,
|
||||||
|
ul {
|
||||||
|
list-style: none
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote,
|
||||||
|
q {
|
||||||
|
quotes: none
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote:before,
|
||||||
|
blockquote:after,
|
||||||
|
q:before,
|
||||||
|
q:after {
|
||||||
|
content: '';
|
||||||
|
content: none
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
color-scheme: light dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
width: 500px;
|
||||||
|
color: black;
|
||||||
|
font-family: system-ui;
|
||||||
|
font-size: 12px;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
/* Dark Mode styles go here. */
|
||||||
|
}
|
||||||
11
popup.html
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="stylesheet" href="popup.css" />
|
||||||
|
<script type="module" src="dist/popup/main.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="main"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
132
src/background/main.ts
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
declare const browser: typeof chrome;
|
||||||
|
|
||||||
|
// tabSwitches is a stack of all tab activations. every time a tab becomes
|
||||||
|
// active it is prepended (unshift) to the front of the array. this means that
|
||||||
|
// there will be duplicate IDs in the array.
|
||||||
|
//
|
||||||
|
// this is handled in 2 ways:
|
||||||
|
// 1. when the popup opens and asks for a list of tabs, we will only insert the tab
|
||||||
|
// in the result when it is _first_ seen and ignored thereafter. however, over
|
||||||
|
// time this will lead to a lot of wasted work since most of the iteration will
|
||||||
|
// be just skipping elements in this array.
|
||||||
|
//
|
||||||
|
// 2. the array is periodically "compacted" by simply running it through a uniq()
|
||||||
|
// operation, therefore reducing most wasted work most of the time.
|
||||||
|
let tabSwitches: number[] = [];
|
||||||
|
|
||||||
|
function uniq<T = any>(array: T[]): T[] {
|
||||||
|
if (array.length <= 1) {
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
const seen = new Set<T>();
|
||||||
|
const result = [];
|
||||||
|
for (let ele of array) {
|
||||||
|
if (seen.has(ele)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
seen.add(ele);
|
||||||
|
result.push(ele);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
setInterval(() => {
|
||||||
|
// periodically compact tabSwitches
|
||||||
|
tabSwitches = uniq(tabSwitches);
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
try {
|
||||||
|
browser.runtime.onConnect.addListener((port) => {
|
||||||
|
port.onMessage.addListener((message) => {
|
||||||
|
switch (message.rpc) {
|
||||||
|
case "listTabs":
|
||||||
|
console.time(`rpc:listTabs:${message.id}`);
|
||||||
|
browser.tabs
|
||||||
|
.query({})
|
||||||
|
.then((tabs) => {
|
||||||
|
// filter out file:///... things, safari does not really have
|
||||||
|
// safari://... things like chrome
|
||||||
|
tabs = tabs.filter((t) => t.url || t.title);
|
||||||
|
|
||||||
|
const hit = new Map<number, boolean>(
|
||||||
|
tabs.filter((t) => !!t.id).map((t) => [t.id!, false])
|
||||||
|
);
|
||||||
|
const tabsById = new Map<number, chrome.tabs.Tab>(
|
||||||
|
tabs.filter((t) => !!t.id).map((t) => [t.id!, t])
|
||||||
|
);
|
||||||
|
const resultTabs = [];
|
||||||
|
for (let tabId of tabSwitches.slice(1)) {
|
||||||
|
if (hit.get(tabId)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
hit.set(tabId, true);
|
||||||
|
const tab = tabsById.get(tabId);
|
||||||
|
if (!tab) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
resultTabs.push(tab);
|
||||||
|
}
|
||||||
|
for (let [tabId, didHit] of hit.entries()) {
|
||||||
|
if (didHit) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const tab = tabsById.get(tabId);
|
||||||
|
if (!tab) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
resultTabs.push(tab);
|
||||||
|
}
|
||||||
|
port.postMessage({
|
||||||
|
result: resultTabs,
|
||||||
|
id: message.id,
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
console.timeEnd(`rpc:listTabs:${message.id}`);
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
default:
|
||||||
|
port.postMessage({
|
||||||
|
error: `unknown rpc method: ${message.rpc}`,
|
||||||
|
id: message.id,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
type Command = () => Promise<void> | void;
|
||||||
|
|
||||||
|
browser.tabs.onActivated.addListener((activeInfo) => {
|
||||||
|
if (activeInfo.tabId) {
|
||||||
|
tabSwitches.unshift(activeInfo.tabId);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const commands = new Map<string, Command>([
|
||||||
|
[
|
||||||
|
"openTabSwitcher",
|
||||||
|
async () => {
|
||||||
|
console.log("open that tab switcher!");
|
||||||
|
await (browser as any).browserAction.openPopup();
|
||||||
|
// await browser.action.openPopup();
|
||||||
|
},
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
|
||||||
|
browser.commands.onCommand.addListener(async (command) => {
|
||||||
|
console.log(`received keyboard shortcut: ${command}`);
|
||||||
|
const fn = commands.get(command);
|
||||||
|
if (!fn) {
|
||||||
|
throw new Error(`unmapped command: ${command}`);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
await Promise.resolve(fn());
|
||||||
|
} catch (e) {
|
||||||
|
console.error(`command function failed: ${e}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
// wrapping everything in a try/catch because F-ING SAFARI refuses to
|
||||||
|
// help you understand why background scripts fail. (https://developer.apple.com/forums/thread/705321)
|
||||||
|
console.error(`background startup failure: ${e}`);
|
||||||
|
}
|
||||||
387
src/popup/main.tsx
Normal file
@@ -0,0 +1,387 @@
|
|||||||
|
import Fuse, { FuseResult, FuseResultMatch, RangeTuple } from "fuse.js";
|
||||||
|
import React, {
|
||||||
|
FunctionComponent,
|
||||||
|
useCallback,
|
||||||
|
useEffect,
|
||||||
|
useMemo,
|
||||||
|
useRef,
|
||||||
|
useState,
|
||||||
|
} from "react";
|
||||||
|
import ReactDOM from "react-dom/client";
|
||||||
|
import { useHotkeys } from "react-hotkeys-hook";
|
||||||
|
import "./scrollIntoViewIfNeededPolyfill";
|
||||||
|
|
||||||
|
function hostname(url: string): string {
|
||||||
|
try {
|
||||||
|
const u = new URL(url);
|
||||||
|
return u.hostname;
|
||||||
|
} catch {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const browser = chrome;
|
||||||
|
|
||||||
|
interface BackgroundPage {
|
||||||
|
listTabs(): Promise<chrome.tabs.Tab[]>;
|
||||||
|
}
|
||||||
|
|
||||||
|
function useBackgroundPage(): BackgroundPage {
|
||||||
|
const msgId = useRef<number>(1);
|
||||||
|
const port = useRef<chrome.runtime.Port>(browser.runtime.connect());
|
||||||
|
type PromiseFinishers<T> = {
|
||||||
|
resolve: (value: T | PromiseLike<T>) => void;
|
||||||
|
reject: (reason?: any) => void;
|
||||||
|
};
|
||||||
|
const waiter = new Map<number, PromiseFinishers<unknown>>();
|
||||||
|
useEffect(() => {
|
||||||
|
const msgListener: Parameters<
|
||||||
|
typeof port.current.onMessage.addListener
|
||||||
|
>["0"] = (message) => {
|
||||||
|
if (!("id" in message) || typeof message.id !== "number") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const promfinishers = waiter.get(message.id);
|
||||||
|
if (!promfinishers) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
waiter.delete(message.id);
|
||||||
|
if (message.error) {
|
||||||
|
promfinishers.reject(message.error);
|
||||||
|
} else {
|
||||||
|
promfinishers.resolve(message.result);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
port.current.onMessage.addListener(msgListener);
|
||||||
|
return () => {
|
||||||
|
port.current.onMessage.removeListener(msgListener);
|
||||||
|
port.current.disconnect();
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return {
|
||||||
|
listTabs() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const id = ++msgId.current;
|
||||||
|
waiter.set(id, {
|
||||||
|
reject,
|
||||||
|
resolve(value) {
|
||||||
|
console.timeEnd(`bgpage:rpc:listTabs:${id}`);
|
||||||
|
resolve(value as chrome.tabs.Tab[]);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
console.time(`bgpage:rpc:listTabs:${id}`);
|
||||||
|
port.current.postMessage({ rpc: "listTabs", id });
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const focusTab = (tabId: number, windowId: number): void => {
|
||||||
|
browser.tabs.update(tabId, { active: true });
|
||||||
|
browser.windows.update(windowId, { focused: true });
|
||||||
|
window.close();
|
||||||
|
};
|
||||||
|
|
||||||
|
const HighlightMatches: FunctionComponent<{
|
||||||
|
text: string;
|
||||||
|
match?: FuseResultMatch;
|
||||||
|
}> = ({ text, match }) => {
|
||||||
|
if (!match) {
|
||||||
|
return <>{text}</>;
|
||||||
|
}
|
||||||
|
const parts: JSX.Element[] = [];
|
||||||
|
const indicies = structuredClone(match.indices) as RangeTuple[];
|
||||||
|
let currentPart = "";
|
||||||
|
let currentMatchIndicy: RangeTuple | undefined;
|
||||||
|
for (let i = 0; i < text.length; i++) {
|
||||||
|
if (indicies.length > 0 && indicies[0][0] === i) {
|
||||||
|
currentMatchIndicy = indicies.shift();
|
||||||
|
if (currentPart.length > 0) {
|
||||||
|
parts.push(<>{currentPart}</>);
|
||||||
|
currentPart = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
currentPart += text[i];
|
||||||
|
if (
|
||||||
|
currentMatchIndicy &&
|
||||||
|
(currentMatchIndicy[1] === i || i === text.length - 1)
|
||||||
|
) {
|
||||||
|
currentMatchIndicy = undefined;
|
||||||
|
parts.push(<b style={{ fontWeight: "bold" }}>{currentPart}</b>);
|
||||||
|
currentPart = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (currentPart) {
|
||||||
|
parts.push(<>{currentPart}</>);
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{parts.map((p, i) => (
|
||||||
|
<React.Fragment key={i}>{p}</React.Fragment>
|
||||||
|
))}
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
// <big_sigh> ...
|
||||||
|
function faviconsWork(tabURL: string, size: number): Promise<boolean> {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
const hiddenDiv = document.createElement("div", {});
|
||||||
|
hiddenDiv.setAttribute("style", "display:none;");
|
||||||
|
const testImg = document.createElement("img");
|
||||||
|
testImg.src = faviconURL({ url: tabURL } as chrome.tabs.Tab, 32)!;
|
||||||
|
testImg.onerror = () => {
|
||||||
|
document.body.removeChild(hiddenDiv);
|
||||||
|
resolve(false);
|
||||||
|
};
|
||||||
|
testImg.onload = () => {
|
||||||
|
document.body.removeChild(hiddenDiv);
|
||||||
|
resolve(true);
|
||||||
|
};
|
||||||
|
hiddenDiv.appendChild(testImg);
|
||||||
|
document.body.appendChild(hiddenDiv);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function faviconURL(t: chrome.tabs.Tab, size: number): string | undefined {
|
||||||
|
if (t.favIconUrl) {
|
||||||
|
return t.favIconUrl;
|
||||||
|
}
|
||||||
|
if (!t.url) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const url = new URL(browser.runtime.getURL("/_favicon/"));
|
||||||
|
url.searchParams.set("pageUrl", t.url);
|
||||||
|
url.searchParams.set("size", `${size}`);
|
||||||
|
return url.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
const Popup: FunctionComponent = () => {
|
||||||
|
const [tabSelector, setTabSelector] = useState(0);
|
||||||
|
const [tabs, setTabs] = useState<chrome.tabs.Tab[]>([]);
|
||||||
|
const [searchQuery, setSearchQuery] = useState("");
|
||||||
|
|
||||||
|
const FAVICON_NOT_SUPPORTED = 0;
|
||||||
|
const FAVICON_SUPPORTED_VIA_EXT_URL = 1;
|
||||||
|
const FAVICON_SUPPORTED_VIA_TAB_DATA = 2;
|
||||||
|
const [enableFavicons, setEnabledFavicons] = useState(FAVICON_NOT_SUPPORTED);
|
||||||
|
useEffect(() => {
|
||||||
|
faviconsWork("https://www.google.com", 32).then((ok) => {
|
||||||
|
if (enableFavicons === 0) {
|
||||||
|
setEnabledFavicons(FAVICON_SUPPORTED_VIA_EXT_URL);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (tabs.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
console.log({ tabs });
|
||||||
|
}, [tabs]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setTabSelector(0);
|
||||||
|
}, [setTabSelector, searchQuery]);
|
||||||
|
const searchIndex = useMemo(() => {
|
||||||
|
const result = new Fuse(tabs, {
|
||||||
|
keys: ["title", "url"],
|
||||||
|
includeMatches: true,
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
}, [tabs]);
|
||||||
|
const searchResults = useMemo(() => {
|
||||||
|
if (!searchQuery) {
|
||||||
|
return tabs.map(
|
||||||
|
(t, i): FuseResult<chrome.tabs.Tab> => ({
|
||||||
|
item: t,
|
||||||
|
refIndex: i,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return searchIndex.search(searchQuery);
|
||||||
|
}, [tabs, searchIndex, searchQuery]);
|
||||||
|
|
||||||
|
const selectedTab = Math.max(
|
||||||
|
0,
|
||||||
|
Math.min(searchResults.length - 1, tabSelector)
|
||||||
|
);
|
||||||
|
|
||||||
|
const selectNext = useCallback(() => {
|
||||||
|
setTabSelector((n) => Math.min(searchResults.length - 1, n + 1));
|
||||||
|
}, [searchResults]);
|
||||||
|
const selectPrev = useCallback(() => {
|
||||||
|
setTabSelector((n) => Math.max(0, n - 1));
|
||||||
|
}, [setTabSelector]);
|
||||||
|
|
||||||
|
const goToTab = useCallback(() => {
|
||||||
|
focusTab(
|
||||||
|
searchResults[tabSelector].item.id!,
|
||||||
|
searchResults[tabSelector].item.windowId
|
||||||
|
);
|
||||||
|
}, [searchResults, tabSelector]);
|
||||||
|
useHotkeys(
|
||||||
|
"Down",
|
||||||
|
() => {
|
||||||
|
selectNext();
|
||||||
|
},
|
||||||
|
[selectNext]
|
||||||
|
);
|
||||||
|
useHotkeys(
|
||||||
|
"Up",
|
||||||
|
() => {
|
||||||
|
selectPrev();
|
||||||
|
},
|
||||||
|
[selectPrev]
|
||||||
|
);
|
||||||
|
useHotkeys(
|
||||||
|
"Enter",
|
||||||
|
() => {
|
||||||
|
goToTab();
|
||||||
|
},
|
||||||
|
[goToTab]
|
||||||
|
);
|
||||||
|
|
||||||
|
const bgpage = useBackgroundPage();
|
||||||
|
useEffect(() => {
|
||||||
|
console.time("queryTabs");
|
||||||
|
bgpage
|
||||||
|
.listTabs()
|
||||||
|
.then((returnedTabs) => {
|
||||||
|
if (returnedTabs.find((t) => !!t.favIconUrl)) {
|
||||||
|
setEnabledFavicons(FAVICON_SUPPORTED_VIA_TAB_DATA);
|
||||||
|
}
|
||||||
|
setTabs(returnedTabs);
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
console.timeEnd("queryTabs");
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const selectedTabEle = useRef<HTMLDivElement>(null);
|
||||||
|
useEffect(() => {
|
||||||
|
if (!selectedTabEle.current) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// scrollIntoViewIfNeeded is non standard but for just safari it works
|
||||||
|
// great!
|
||||||
|
(selectedTabEle as any).current.scrollIntoViewIfNeeded(false);
|
||||||
|
}, [selectedTabEle.current]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<div style={{ padding: "1em" }}>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
autoFocus
|
||||||
|
value={searchQuery}
|
||||||
|
style={{
|
||||||
|
width: "100%",
|
||||||
|
outline: "none",
|
||||||
|
border: "none",
|
||||||
|
fontSize: "1.1em",
|
||||||
|
}}
|
||||||
|
onKeyDown={(e) => {
|
||||||
|
if (e.key === "ArrowDown") {
|
||||||
|
selectNext();
|
||||||
|
} else if (e.key === "ArrowUp") {
|
||||||
|
selectPrev();
|
||||||
|
} else if (e.key === "Enter") {
|
||||||
|
goToTab();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
spellCheck="false"
|
||||||
|
autoCorrect="false"
|
||||||
|
onChange={(e) => {
|
||||||
|
setSearchQuery(e.target.value);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<hr style={{ opacity: "0.3", marginTop: "0px" }} />
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
maxHeight: "500px",
|
||||||
|
overflow: "scroll",
|
||||||
|
// minHeight: "300px"
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{searchResults.length === 0 ? (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
padding: "1.5em",
|
||||||
|
fontSize: "1.1em",
|
||||||
|
display: "flex",
|
||||||
|
justifyContent: "center",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
No Results Found
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
{searchResults.map((t, i) => {
|
||||||
|
const favicURL = enableFavicons !== 0 ? faviconURL(t.item, 32) : null;
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
key={t.item.id}
|
||||||
|
className="ht-tab"
|
||||||
|
onClick={() => {
|
||||||
|
focusTab(t.item.id!, t.item.windowId);
|
||||||
|
}}
|
||||||
|
ref={i === tabSelector ? selectedTabEle : undefined}
|
||||||
|
style={{
|
||||||
|
padding: "10px",
|
||||||
|
backgroundColor: i === selectedTab ? "#e9e9e9" : undefined,
|
||||||
|
|
||||||
|
// favicon support
|
||||||
|
...(enableFavicons
|
||||||
|
? {
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{favicURL && (
|
||||||
|
<div className="ht-tab-favicon" style={{ marginRight: "1em" }}>
|
||||||
|
<img width={16} height={16} src={favicURL} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<div>
|
||||||
|
<div
|
||||||
|
className="ht-tab-title"
|
||||||
|
style={{
|
||||||
|
whiteSpace: "nowrap",
|
||||||
|
overflow: "hidden",
|
||||||
|
textOverflow: "ellipsis",
|
||||||
|
fontSize: "1.1em",
|
||||||
|
marginBottom: "6px",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{
|
||||||
|
<HighlightMatches
|
||||||
|
text={t.item.title ?? ""}
|
||||||
|
match={t.matches?.find((m) => m.key === "title")}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
className="ht-tab-location"
|
||||||
|
style={{
|
||||||
|
color: "#6e6e6e",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t.item.url ? hostname(t.item.url) : ""}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const root = ReactDOM.createRoot(document.getElementById("main")!);
|
||||||
|
root.render(<Popup />);
|
||||||
54
src/popup/scrollIntoViewIfNeededPolyfill.ts
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
if (!(Element as any).prototype.scrollIntoViewIfNeeded) {
|
||||||
|
console.log("scrollIntoViewIfNeeded polyfill installing...");
|
||||||
|
(Element.prototype as any).scrollIntoViewIfNeeded = function (
|
||||||
|
centerIfNeeded: boolean
|
||||||
|
) {
|
||||||
|
centerIfNeeded = arguments.length === 0 ? true : !!centerIfNeeded;
|
||||||
|
/** @this {Element} */
|
||||||
|
var parent = this.parentNode,
|
||||||
|
parentComputedStyle = window.getComputedStyle(parent, null),
|
||||||
|
parentBorderTopWidth = parseInt(
|
||||||
|
parentComputedStyle.getPropertyValue("border-top-width")
|
||||||
|
),
|
||||||
|
parentBorderLeftWidth = parseInt(
|
||||||
|
parentComputedStyle.getPropertyValue("border-left-width")
|
||||||
|
),
|
||||||
|
overTop = this.offsetTop - parent.offsetTop < parent.scrollTop,
|
||||||
|
overBottom =
|
||||||
|
this.offsetTop -
|
||||||
|
parent.offsetTop +
|
||||||
|
this.clientHeight -
|
||||||
|
parentBorderTopWidth >
|
||||||
|
parent.scrollTop + parent.clientHeight,
|
||||||
|
overLeft = this.offsetLeft - parent.offsetLeft < parent.scrollLeft,
|
||||||
|
overRight =
|
||||||
|
this.offsetLeft -
|
||||||
|
parent.offsetLeft +
|
||||||
|
this.clientWidth -
|
||||||
|
parentBorderLeftWidth >
|
||||||
|
parent.scrollLeft + parent.clientWidth,
|
||||||
|
alignWithTop = overTop && !overBottom;
|
||||||
|
|
||||||
|
if ((overTop || overBottom) && centerIfNeeded) {
|
||||||
|
parent.scrollTop =
|
||||||
|
this.offsetTop -
|
||||||
|
parent.offsetTop -
|
||||||
|
parent.clientHeight / 2 -
|
||||||
|
parentBorderTopWidth +
|
||||||
|
this.clientHeight / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((overLeft || overRight) && centerIfNeeded) {
|
||||||
|
parent.scrollLeft =
|
||||||
|
this.offsetLeft -
|
||||||
|
parent.offsetLeft -
|
||||||
|
parent.clientWidth / 2 -
|
||||||
|
parentBorderLeftWidth +
|
||||||
|
this.clientWidth / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((overTop || overBottom || overLeft || overRight) && !centerIfNeeded) {
|
||||||
|
this.scrollIntoView(alignWithTop);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
20
tsconfig.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es6",
|
||||||
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
|
"allowJs": false,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"strict": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"noEmit": false,
|
||||||
|
"jsx": "react"
|
||||||
|
},
|
||||||
|
"include": ["src"],
|
||||||
|
"exclude": ["build", "node_modules"]
|
||||||
|
}
|
||||||