├── .DS_Store ├── Assets.xcassets ├── Contents.json └── Particle Sprite Atlas.spriteatlas │ ├── Contents.json │ └── spark.imageset │ ├── Contents.json │ └── spark.png ├── DMG ├── .DS_Store ├── Icon.icns ├── Icon.iconset │ ├── Contents.json │ ├── icon_128x128@1x.png │ ├── icon_128x128@2x.png │ ├── icon_16x16@1x.png │ ├── icon_16x16@2x.png │ ├── icon_256x256@1x.png │ ├── icon_256x256@2x.png │ ├── icon_32x32@1x.png │ ├── icon_32x32@2x.png │ ├── icon_512x512@1x.png │ └── icon_512x512@2x.png ├── Icon │ ├── Icon-1024.png │ ├── Icon-128.png │ ├── Icon-256.png │ ├── Icon-32.png │ ├── Icon-512.png │ └── Icon-64.png ├── README.md ├── Streamline.app │ └── Contents │ │ ├── CodeResources │ │ ├── Info.plist │ │ ├── MacOS │ │ └── Streamline │ │ ├── PkgInfo │ │ ├── Resources │ │ ├── AppIcon.icns │ │ ├── Assets.car │ │ └── Smoke.sks │ │ └── _CodeSignature │ │ └── CodeResources ├── appdmg.json ├── background.png └── run.sh ├── LICENSE ├── README.md ├── Streamline-Welcome.gif ├── Streamline.app └── Contents │ ├── CodeResources │ ├── Info.plist │ ├── MacOS │ └── Streamline │ ├── PkgInfo │ ├── Resources │ ├── AppIcon.icns │ ├── Assets.car │ └── SparkParticle.sks │ └── _CodeSignature │ └── CodeResources ├── Streamline.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── swiftpm │ │ │ └── Package.resolved │ └── xcuserdata │ │ └── alexisrondeau.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcshareddata │ └── xcschemes │ │ └── Streamline.xcscheme └── xcuserdata │ └── alexisrondeau.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── Streamline ├── .DS_Store ├── AppDelegate.swift ├── Assets.xcassets │ ├── .DS_Store │ ├── AccentColor.colorset │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ ├── AppIcon 1.png │ │ ├── AppIcon 2.png │ │ ├── AppIcon 3.png │ │ ├── AppIcon 4.png │ │ ├── AppIcon 5.png │ │ ├── AppIcon 6.png │ │ ├── AppIcon 7.png │ │ ├── AppIcon 8.png │ │ ├── AppIcon 9.png │ │ ├── AppIcon.png │ │ └── Contents.json │ ├── Contents.json │ ├── CursorColor.colorset │ │ └── Contents.json │ ├── FireflyColorFive.colorset │ │ └── Contents.json │ ├── FireflyColorFour.colorset │ │ └── Contents.json │ ├── FireflyColorOne.colorset │ │ └── Contents.json │ ├── FireflyColorSix.colorset │ │ └── Contents.json │ ├── FireflyColorThree.colorset │ │ └── Contents.json │ ├── FireflyColorTwo.colorset │ │ └── Contents.json │ ├── FirstWordColor.colorset │ │ └── Contents.json │ ├── LineColor.colorset │ │ └── Contents.json │ ├── MaskColor.colorset │ │ └── Contents.json │ ├── NotionLogo.imageset │ │ ├── Contents.json │ │ ├── NotionLogo 1.png │ │ ├── NotionLogo 2.png │ │ └── NotionLogo.png │ ├── ObsidianLogo.imageset │ │ ├── Contents.json │ │ ├── Obsidian 1.png │ │ ├── Obsidian 2.png │ │ └── Obsidian.png │ ├── ObsidianPurple.colorset │ │ └── Contents.json │ ├── ObsidianPurpleDark.colorset │ │ └── Contents.json │ ├── Particle Sprite Atlas.spriteatlas │ │ ├── Contents.json │ │ └── spark.imageset │ │ │ ├── Contents.json │ │ │ ├── spark 1.png │ │ │ ├── spark 2.png │ │ │ └── spark.png │ ├── RightSide.colorset │ │ └── Contents.json │ ├── SettingsBackground.colorset │ │ └── Contents.json │ ├── Start.imageset │ │ ├── Contents.json │ │ ├── Start 1.png │ │ ├── Start 2.png │ │ └── Start.png │ ├── TextColor.colorset │ │ └── Contents.json │ ├── Vault.imageset │ │ ├── Contents.json │ │ ├── Vault 1.png │ │ ├── Vault 2.png │ │ └── Vault.png │ └── Welcome.imageset │ │ ├── Contents.json │ │ ├── Welcome 1.png │ │ ├── Welcome 2.png │ │ └── Welcome.png ├── Info.plist ├── Keyboard │ ├── CGKeyCode_Extension.swift │ └── KeyboardInput.swift ├── Particles │ ├── Assets.xcassets │ │ ├── Contents.json │ │ └── Particle Sprite Atlas.spriteatlas │ │ │ ├── Contents.json │ │ │ └── spark.imageset │ │ │ ├── Contents.json │ │ │ └── spark.png │ ├── ParticleScene.swift │ └── Smoke.sks ├── Preview Content │ ├── .DS_Store │ └── Preview Assets.xcassets │ │ └── Contents.json ├── Settings │ ├── AdvancedSettingsView.swift │ ├── ObsidianVaultSettings.swift │ └── SettingsView.swift ├── State │ └── AppState.swift ├── Streamline.entitlements ├── StreamlineApp.swift ├── Updates │ └── CheckForUpdatesViewModel.swift ├── Util │ ├── KeyboardInput.swift │ └── ViewExtensions.swift └── Views │ ├── AutocompleteView.swift │ ├── ContentView.swift │ ├── RageTextInputView.swift │ └── WelcomeView.swift └── ship.sh /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/.DS_Store -------------------------------------------------------------------------------- /Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Assets.xcassets/Particle Sprite Atlas.spriteatlas/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "spark.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark.png -------------------------------------------------------------------------------- /DMG/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/.DS_Store -------------------------------------------------------------------------------- /DMG/Icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.icns -------------------------------------------------------------------------------- /DMG/Icon.iconset/Contents.json: -------------------------------------------------------------------------------- 1 | {"images":[{"size":"16x16","idiom":"mac","filename":"icon_16x16@1x.png","scale":"1x"},{"size":"16x16","idiom":"mac","filename":"icon_16x16@2x.png","scale":"2x"},{"size":"32x32","idiom":"mac","filename":"icon_32x32@1x.png","scale":"1x"},{"size":"32x32","idiom":"mac","filename":"icon_32x32@2x.png","scale":"2x"},{"size":"128x128","idiom":"mac","filename":"icon_128x128@1x.png","scale":"1x"},{"size":"128x128","idiom":"mac","filename":"icon_128x128@2x.png","scale":"2x"},{"size":"256x256","idiom":"mac","filename":"icon_256x256@1x.png","scale":"1x"},{"size":"256x256","idiom":"mac","filename":"icon_256x256@2x.png","scale":"2x"},{"size":"512x512","idiom":"mac","filename":"icon_512x512@1x.png","scale":"1x"},{"size":"512x512","idiom":"mac","filename":"icon_512x512@2x.png","scale":"2x"}],"info":{"version":1,"author":"xcode"}} -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_128x128@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_128x128@1x.png -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_128x128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_128x128@2x.png -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_16x16@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_16x16@1x.png -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_16x16@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_16x16@2x.png -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_256x256@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_256x256@1x.png -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_256x256@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_256x256@2x.png -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_32x32@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_32x32@1x.png -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_32x32@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_32x32@2x.png -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_512x512@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_512x512@1x.png -------------------------------------------------------------------------------- /DMG/Icon.iconset/icon_512x512@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon.iconset/icon_512x512@2x.png -------------------------------------------------------------------------------- /DMG/Icon/Icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon/Icon-1024.png -------------------------------------------------------------------------------- /DMG/Icon/Icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon/Icon-128.png -------------------------------------------------------------------------------- /DMG/Icon/Icon-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon/Icon-256.png -------------------------------------------------------------------------------- /DMG/Icon/Icon-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon/Icon-32.png -------------------------------------------------------------------------------- /DMG/Icon/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon/Icon-512.png -------------------------------------------------------------------------------- /DMG/Icon/Icon-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Icon/Icon-64.png -------------------------------------------------------------------------------- /DMG/README.md: -------------------------------------------------------------------------------- 1 | # https://github.com/LinusU/node-appdmg 2 | # npm install -g appdmg 3 | 4 | # Generate folder with icons (Icon.iconset) with the macOS app 5 | 6 | iconutil -c icns ./Icon.iconset 7 | 8 | appdmg ./appdmg.json ~/Desktop/Unblah.dmg 9 | 10 | -------------------------------------------------------------------------------- /DMG/Streamline.app/Contents/CodeResources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Streamline.app/Contents/CodeResources -------------------------------------------------------------------------------- /DMG/Streamline.app/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 22C5033e 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleDisplayName 10 | Streamline 11 | CFBundleExecutable 12 | Streamline 13 | CFBundleIconFile 14 | AppIcon 15 | CFBundleIconName 16 | AppIcon 17 | CFBundleIdentifier 18 | com.rondeau.Streamline 19 | CFBundleInfoDictionaryVersion 20 | 6.0 21 | CFBundleName 22 | Streamline 23 | CFBundlePackageType 24 | APPL 25 | CFBundleShortVersionString 26 | 3.5.4 27 | CFBundleSupportedPlatforms 28 | 29 | MacOSX 30 | 31 | CFBundleURLTypes 32 | 33 | 34 | CFBundleURLSchemes 35 | 36 | streamline 37 | 38 | 39 | 40 | CFBundleVersion 41 | 1 42 | DTCompiler 43 | com.apple.compilers.llvm.clang.1_0 44 | DTPlatformBuild 45 | 14B47b 46 | DTPlatformName 47 | macosx 48 | DTPlatformVersion 49 | 13.0 50 | DTSDKBuild 51 | 22A372 52 | DTSDKName 53 | macosx13.0 54 | DTXcode 55 | 1410 56 | DTXcodeBuild 57 | 14B47b 58 | LSApplicationCategoryType 59 | public.app-category.productivity 60 | LSMinimumSystemVersion 61 | 12.2 62 | com.apple.security.files.bookmarks.app-scope 63 | 64 | com.apple.security.files.user-selected.read-write 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /DMG/Streamline.app/Contents/MacOS/Streamline: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Streamline.app/Contents/MacOS/Streamline -------------------------------------------------------------------------------- /DMG/Streamline.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPL???? -------------------------------------------------------------------------------- /DMG/Streamline.app/Contents/Resources/AppIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Streamline.app/Contents/Resources/AppIcon.icns -------------------------------------------------------------------------------- /DMG/Streamline.app/Contents/Resources/Assets.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Streamline.app/Contents/Resources/Assets.car -------------------------------------------------------------------------------- /DMG/Streamline.app/Contents/Resources/Smoke.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/Streamline.app/Contents/Resources/Smoke.sks -------------------------------------------------------------------------------- /DMG/Streamline.app/Contents/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/AppIcon.icns 8 | 9 | otB11ClSlu0GPx08ObYe8cjzQ1U= 10 | 11 | Resources/Assets.car 12 | 13 | 5HNAAM7WAh+xTs7409OOsxgfsbE= 14 | 15 | Resources/Smoke.sks 16 | 17 | +rmwQXHRHg2LHKHmRrZfjmtkRJk= 18 | 19 | 20 | files2 21 | 22 | Resources/AppIcon.icns 23 | 24 | hash2 25 | 26 | x1C/1s2wqv+3mmCGj9EAKGs7dBCAjTr5MSTcct/jErY= 27 | 28 | 29 | Resources/Assets.car 30 | 31 | hash2 32 | 33 | dx22Odt0/m5E6oQYl/C2ECUMiOoIS56a4//1nv1yD7g= 34 | 35 | 36 | Resources/Smoke.sks 37 | 38 | hash2 39 | 40 | 41nXdn6q3461btvVHciaWGng0y3FeTtByo51aIa/nBk= 41 | 42 | 43 | 44 | rules 45 | 46 | ^Resources/ 47 | 48 | ^Resources/.*\.lproj/ 49 | 50 | optional 51 | 52 | weight 53 | 1000 54 | 55 | ^Resources/.*\.lproj/locversion.plist$ 56 | 57 | omit 58 | 59 | weight 60 | 1100 61 | 62 | ^Resources/Base\.lproj/ 63 | 64 | weight 65 | 1010 66 | 67 | ^version.plist$ 68 | 69 | 70 | rules2 71 | 72 | .*\.dSYM($|/) 73 | 74 | weight 75 | 11 76 | 77 | ^(.*/)?\.DS_Store$ 78 | 79 | omit 80 | 81 | weight 82 | 2000 83 | 84 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 85 | 86 | nested 87 | 88 | weight 89 | 10 90 | 91 | ^.* 92 | 93 | ^Info\.plist$ 94 | 95 | omit 96 | 97 | weight 98 | 20 99 | 100 | ^PkgInfo$ 101 | 102 | omit 103 | 104 | weight 105 | 20 106 | 107 | ^Resources/ 108 | 109 | weight 110 | 20 111 | 112 | ^Resources/.*\.lproj/ 113 | 114 | optional 115 | 116 | weight 117 | 1000 118 | 119 | ^Resources/.*\.lproj/locversion.plist$ 120 | 121 | omit 122 | 123 | weight 124 | 1100 125 | 126 | ^Resources/Base\.lproj/ 127 | 128 | weight 129 | 1010 130 | 131 | ^[^/]+$ 132 | 133 | nested 134 | 135 | weight 136 | 10 137 | 138 | ^embedded\.provisionprofile$ 139 | 140 | weight 141 | 20 142 | 143 | ^version\.plist$ 144 | 145 | weight 146 | 20 147 | 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /DMG/appdmg.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Streamline", 3 | "icon": "Icon.icns", 4 | "background": "background.png", 5 | "contents": [ 6 | { "x": 448, "y": 344, "type": "link", "path": "/Applications" }, 7 | { "x": 192, "y": 344, "type": "file", "path": "Streamline.app" } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /DMG/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/DMG/background.png -------------------------------------------------------------------------------- /DMG/run.sh: -------------------------------------------------------------------------------- 1 | appdmg ./appdmg.json ~/Desktop/Streamline.dmg 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Cool Alternatives 2 | - [@kepano](https://github.com/kepano)'s [Obsidian Serenity](https://github.com/kepano/obsidian-serenity) for Obsidian 3 | - [Alicia Guo](https://www.aliciaguo.com/)'s Demo [on Twitter](https://twitter.com/upcycledwords/status/1648427766151532545) 4 | - [iA Writer](https://ia.net/writer) 5 | - [FlowState](https://apps.apple.com/us/app/flowstate/id1060276201) 6 | - [Typora](https://typora.io/) 7 | 8 | ## Streamline Demo and Download 9 | Watch the demo and get Streamline for macOS here: 10 | [![Demo](https://getstreamline.app/images/social.png)](https://getstreamline.app?wvideo=f1xos22k50) 11 | -------------------------------------------------------------------------------- /Streamline-Welcome.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline-Welcome.gif -------------------------------------------------------------------------------- /Streamline.app/Contents/CodeResources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline.app/Contents/CodeResources -------------------------------------------------------------------------------- /Streamline.app/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 22C5033e 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleDisplayName 10 | Streamline 11 | CFBundleExecutable 12 | Streamline 13 | CFBundleIconFile 14 | AppIcon 15 | CFBundleIconName 16 | AppIcon 17 | CFBundleIdentifier 18 | com.rondeau.Streamline 19 | CFBundleInfoDictionaryVersion 20 | 6.0 21 | CFBundleName 22 | Streamline 23 | CFBundlePackageType 24 | APPL 25 | CFBundleShortVersionString 26 | 2.8 27 | CFBundleSupportedPlatforms 28 | 29 | MacOSX 30 | 31 | CFBundleURLTypes 32 | 33 | 34 | CFBundleURLSchemes 35 | 36 | streamline 37 | 38 | 39 | 40 | CFBundleVersion 41 | 1 42 | DTCompiler 43 | com.apple.compilers.llvm.clang.1_0 44 | DTPlatformBuild 45 | 14A309 46 | DTPlatformName 47 | macosx 48 | DTPlatformVersion 49 | 12.3 50 | DTSDKBuild 51 | 21E226 52 | DTSDKName 53 | macosx12.3 54 | DTXcode 55 | 1400 56 | DTXcodeBuild 57 | 14A309 58 | LSApplicationCategoryType 59 | public.app-category.productivity 60 | LSMinimumSystemVersion 61 | 12.2 62 | NSHumanReadableCopyright 63 | 64 | UIAppFonts 65 | 66 | iAWriterDuoS-Regular.ttf 67 | 68 | com.apple.security.files.bookmarks.app-scope 69 | 70 | com.apple.security.files.user-selected.read-write 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /Streamline.app/Contents/MacOS/Streamline: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline.app/Contents/MacOS/Streamline -------------------------------------------------------------------------------- /Streamline.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPL???? -------------------------------------------------------------------------------- /Streamline.app/Contents/Resources/AppIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline.app/Contents/Resources/AppIcon.icns -------------------------------------------------------------------------------- /Streamline.app/Contents/Resources/Assets.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline.app/Contents/Resources/Assets.car -------------------------------------------------------------------------------- /Streamline.app/Contents/Resources/SparkParticle.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline.app/Contents/Resources/SparkParticle.sks -------------------------------------------------------------------------------- /Streamline.app/Contents/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/AppIcon.icns 8 | 9 | cfQsGp/z//0siH2OG+z5z/RzNX0= 10 | 11 | Resources/Assets.car 12 | 13 | MmpV/DBthaytEDrAqBovNqXk1/c= 14 | 15 | Resources/SparkParticle.sks 16 | 17 | Xr6jO8jTEFRlYB4pS5+KKNEohUI= 18 | 19 | 20 | files2 21 | 22 | Resources/AppIcon.icns 23 | 24 | hash2 25 | 26 | eFZLWwToLIhQ3NZbSAi/Jii6+fNRI12ZyAwbMd+KUdw= 27 | 28 | 29 | Resources/Assets.car 30 | 31 | hash2 32 | 33 | 6VK/XRkUA1UiADmDCJ3kiuQWJWJ3ZlEoYl+IhJ4s2tU= 34 | 35 | 36 | Resources/SparkParticle.sks 37 | 38 | hash2 39 | 40 | wphcqZ1aO9iknuG0y18qGE0pA9IpWzFNsgEXSSLQPzQ= 41 | 42 | 43 | 44 | rules 45 | 46 | ^Resources/ 47 | 48 | ^Resources/.*\.lproj/ 49 | 50 | optional 51 | 52 | weight 53 | 1000 54 | 55 | ^Resources/.*\.lproj/locversion.plist$ 56 | 57 | omit 58 | 59 | weight 60 | 1100 61 | 62 | ^Resources/Base\.lproj/ 63 | 64 | weight 65 | 1010 66 | 67 | ^version.plist$ 68 | 69 | 70 | rules2 71 | 72 | .*\.dSYM($|/) 73 | 74 | weight 75 | 11 76 | 77 | ^(.*/)?\.DS_Store$ 78 | 79 | omit 80 | 81 | weight 82 | 2000 83 | 84 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 85 | 86 | nested 87 | 88 | weight 89 | 10 90 | 91 | ^.* 92 | 93 | ^Info\.plist$ 94 | 95 | omit 96 | 97 | weight 98 | 20 99 | 100 | ^PkgInfo$ 101 | 102 | omit 103 | 104 | weight 105 | 20 106 | 107 | ^Resources/ 108 | 109 | weight 110 | 20 111 | 112 | ^Resources/.*\.lproj/ 113 | 114 | optional 115 | 116 | weight 117 | 1000 118 | 119 | ^Resources/.*\.lproj/locversion.plist$ 120 | 121 | omit 122 | 123 | weight 124 | 1100 125 | 126 | ^Resources/Base\.lproj/ 127 | 128 | weight 129 | 1010 130 | 131 | ^[^/]+$ 132 | 133 | nested 134 | 135 | weight 136 | 10 137 | 138 | ^embedded\.provisionprofile$ 139 | 140 | weight 141 | 20 142 | 143 | ^version\.plist$ 144 | 145 | weight 146 | 20 147 | 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /Streamline.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 55; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 5643C1CC29251DEE00EBBF2D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5643C1CA29251DEE00EBBF2D /* Assets.xcassets */; }; 11 | 5643C1D429251F0300EBBF2D /* Smoke.sks in Resources */ = {isa = PBXBuildFile; fileRef = 5643C1D329251F0300EBBF2D /* Smoke.sks */; }; 12 | 5648615628CDEA1800B7A3E5 /* AppState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5648615528CDEA1800B7A3E5 /* AppState.swift */; }; 13 | 565561D7290C16CB00290876 /* AutocompleteView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 565561D6290C16CB00290876 /* AutocompleteView.swift */; }; 14 | 56741A362953503F00F22FBB /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56741A352953503F00F22FBB /* SettingsView.swift */; }; 15 | 56741A382953508200F22FBB /* AdvancedSettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56741A372953508200F22FBB /* AdvancedSettingsView.swift */; }; 16 | 568D87B0290E83CC00B1B017 /* CGKeyCode_Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 568D87AF290E83CC00B1B017 /* CGKeyCode_Extension.swift */; }; 17 | 568D87B2290E867E00B1B017 /* KeyboardInput.swift in Sources */ = {isa = PBXBuildFile; fileRef = 568D87B1290E867D00B1B017 /* KeyboardInput.swift */; }; 18 | 56AE8CC3291E83E6008E56BD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 56AE8CC1291E83E6008E56BD /* Assets.xcassets */; }; 19 | 56AE8CC5291E8641008E56BD /* ParticleScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56AE8CC4291E8641008E56BD /* ParticleScene.swift */; }; 20 | 56B51A88290D695C00EFEAD1 /* ObsidianVaultSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56B51A87290D695C00EFEAD1 /* ObsidianVaultSettings.swift */; }; 21 | 56D0C3CA28B6297100B96243 /* RageTextInputView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56D0C3C928B6297100B96243 /* RageTextInputView.swift */; }; 22 | 56DBA3F829336D1800A442D9 /* WelcomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56DBA3F729336D1800A442D9 /* WelcomeView.swift */; }; 23 | 56DBA3FA2933700400A442D9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56DBA3F92933700400A442D9 /* AppDelegate.swift */; }; 24 | 56DDF1BB29115A7D00113DFF /* ViewExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56DDF1BA29115A7D00113DFF /* ViewExtensions.swift */; }; 25 | 56DF1ECE28B60D0B0020B6F6 /* StreamlineApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56DF1ECD28B60D0B0020B6F6 /* StreamlineApp.swift */; }; 26 | 56DF1ED228B60D0D0020B6F6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 56DF1ED128B60D0D0020B6F6 /* Assets.xcassets */; }; 27 | 56DF1ED528B60D0D0020B6F6 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 56DF1ED428B60D0D0020B6F6 /* Preview Assets.xcassets */; }; 28 | 56DF1EE228B60D390020B6F6 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56DF1EE128B60D390020B6F6 /* ContentView.swift */; }; 29 | 56E81F7C29117A9500CAD9ED /* SwiftUIX in Frameworks */ = {isa = PBXBuildFile; productRef = 56E81F7B29117A9500CAD9ED /* SwiftUIX */; }; 30 | /* End PBXBuildFile section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 5643C1CA29251DEE00EBBF2D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 34 | 5643C1D329251F0300EBBF2D /* Smoke.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = Smoke.sks; sourceTree = ""; }; 35 | 5648615528CDEA1800B7A3E5 /* AppState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppState.swift; sourceTree = ""; }; 36 | 565561D6290C16CB00290876 /* AutocompleteView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AutocompleteView.swift; sourceTree = ""; }; 37 | 56741A352953503F00F22FBB /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = ""; }; 38 | 56741A372953508200F22FBB /* AdvancedSettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdvancedSettingsView.swift; sourceTree = ""; }; 39 | 568D87AF290E83CC00B1B017 /* CGKeyCode_Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CGKeyCode_Extension.swift; sourceTree = ""; }; 40 | 568D87B1290E867D00B1B017 /* KeyboardInput.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyboardInput.swift; sourceTree = ""; }; 41 | 56AE8CC1291E83E6008E56BD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 42 | 56AE8CC4291E8641008E56BD /* ParticleScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParticleScene.swift; sourceTree = ""; }; 43 | 56B51A86290D5FC700EFEAD1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; 44 | 56B51A87290D695C00EFEAD1 /* ObsidianVaultSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ObsidianVaultSettings.swift; sourceTree = ""; }; 45 | 56D0C3C928B6297100B96243 /* RageTextInputView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RageTextInputView.swift; sourceTree = ""; }; 46 | 56DBA3F729336D1800A442D9 /* WelcomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeView.swift; sourceTree = ""; }; 47 | 56DBA3F92933700400A442D9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 48 | 56DDF1BA29115A7D00113DFF /* ViewExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewExtensions.swift; sourceTree = ""; }; 49 | 56DF1ECA28B60D0B0020B6F6 /* Streamline.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Streamline.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 56DF1ECD28B60D0B0020B6F6 /* StreamlineApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StreamlineApp.swift; sourceTree = ""; }; 51 | 56DF1ED128B60D0D0020B6F6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 52 | 56DF1ED428B60D0D0020B6F6 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 53 | 56DF1EDB28B60D0D0020B6F6 /* Streamline.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Streamline.entitlements; sourceTree = ""; }; 54 | 56DF1EE128B60D390020B6F6 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 55 | /* End PBXFileReference section */ 56 | 57 | /* Begin PBXFrameworksBuildPhase section */ 58 | 56DF1EC728B60D0B0020B6F6 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 56E81F7C29117A9500CAD9ED /* SwiftUIX in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 5617C6E729103A300081FA58 /* Views */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 56D0C3C928B6297100B96243 /* RageTextInputView.swift */, 73 | 56DF1EE128B60D390020B6F6 /* ContentView.swift */, 74 | 565561D6290C16CB00290876 /* AutocompleteView.swift */, 75 | 56DBA3F729336D1800A442D9 /* WelcomeView.swift */, 76 | ); 77 | path = Views; 78 | sourceTree = ""; 79 | }; 80 | 5617C6E829103A350081FA58 /* Util */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 56DDF1BA29115A7D00113DFF /* ViewExtensions.swift */, 84 | ); 85 | path = Util; 86 | sourceTree = ""; 87 | }; 88 | 5617C6E929103A600081FA58 /* State */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 5648615528CDEA1800B7A3E5 /* AppState.swift */, 92 | ); 93 | path = State; 94 | sourceTree = ""; 95 | }; 96 | 5617C6EA29103A6F0081FA58 /* Keyboard */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 568D87AF290E83CC00B1B017 /* CGKeyCode_Extension.swift */, 100 | 568D87B1290E867D00B1B017 /* KeyboardInput.swift */, 101 | ); 102 | path = Keyboard; 103 | sourceTree = ""; 104 | }; 105 | 5631741A291D14B000842512 /* Settings */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 56B51A87290D695C00EFEAD1 /* ObsidianVaultSettings.swift */, 109 | 56741A352953503F00F22FBB /* SettingsView.swift */, 110 | 56741A372953508200F22FBB /* AdvancedSettingsView.swift */, 111 | ); 112 | path = Settings; 113 | sourceTree = ""; 114 | }; 115 | 56AE8CC6291E87AE008E56BD /* Particles */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 56AE8CC4291E8641008E56BD /* ParticleScene.swift */, 119 | 5643C1D329251F0300EBBF2D /* Smoke.sks */, 120 | 5643C1CA29251DEE00EBBF2D /* Assets.xcassets */, 121 | ); 122 | path = Particles; 123 | sourceTree = ""; 124 | }; 125 | 56DF1EC128B60D0B0020B6F6 = { 126 | isa = PBXGroup; 127 | children = ( 128 | 56AE8CC1291E83E6008E56BD /* Assets.xcassets */, 129 | 56DF1ECC28B60D0B0020B6F6 /* Streamline */, 130 | 56DF1ECB28B60D0B0020B6F6 /* Products */, 131 | ); 132 | sourceTree = ""; 133 | }; 134 | 56DF1ECB28B60D0B0020B6F6 /* Products */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 56DF1ECA28B60D0B0020B6F6 /* Streamline.app */, 138 | ); 139 | name = Products; 140 | sourceTree = ""; 141 | }; 142 | 56DF1ECC28B60D0B0020B6F6 /* Streamline */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 56AE8CC6291E87AE008E56BD /* Particles */, 146 | 5631741A291D14B000842512 /* Settings */, 147 | 5617C6EA29103A6F0081FA58 /* Keyboard */, 148 | 5617C6E929103A600081FA58 /* State */, 149 | 5617C6E829103A350081FA58 /* Util */, 150 | 5617C6E729103A300081FA58 /* Views */, 151 | 56B51A86290D5FC700EFEAD1 /* Info.plist */, 152 | 56DF1ECD28B60D0B0020B6F6 /* StreamlineApp.swift */, 153 | 56DBA3F92933700400A442D9 /* AppDelegate.swift */, 154 | 56DF1ED128B60D0D0020B6F6 /* Assets.xcassets */, 155 | 56DF1EDB28B60D0D0020B6F6 /* Streamline.entitlements */, 156 | 56DF1ED328B60D0D0020B6F6 /* Preview Content */, 157 | ); 158 | path = Streamline; 159 | sourceTree = ""; 160 | }; 161 | 56DF1ED328B60D0D0020B6F6 /* Preview Content */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 56DF1ED428B60D0D0020B6F6 /* Preview Assets.xcassets */, 165 | ); 166 | path = "Preview Content"; 167 | sourceTree = ""; 168 | }; 169 | /* End PBXGroup section */ 170 | 171 | /* Begin PBXNativeTarget section */ 172 | 56DF1EC928B60D0B0020B6F6 /* Streamline */ = { 173 | isa = PBXNativeTarget; 174 | buildConfigurationList = 56DF1EDE28B60D0D0020B6F6 /* Build configuration list for PBXNativeTarget "Streamline" */; 175 | buildPhases = ( 176 | 56DF1EC628B60D0B0020B6F6 /* Sources */, 177 | 56DF1EC728B60D0B0020B6F6 /* Frameworks */, 178 | 56DF1EC828B60D0B0020B6F6 /* Resources */, 179 | ); 180 | buildRules = ( 181 | ); 182 | dependencies = ( 183 | ); 184 | name = Streamline; 185 | packageProductDependencies = ( 186 | 56E81F7B29117A9500CAD9ED /* SwiftUIX */, 187 | ); 188 | productName = RageEditor; 189 | productReference = 56DF1ECA28B60D0B0020B6F6 /* Streamline.app */; 190 | productType = "com.apple.product-type.application"; 191 | }; 192 | /* End PBXNativeTarget section */ 193 | 194 | /* Begin PBXProject section */ 195 | 56DF1EC228B60D0B0020B6F6 /* Project object */ = { 196 | isa = PBXProject; 197 | attributes = { 198 | BuildIndependentTargetsInParallel = 1; 199 | LastSwiftUpdateCheck = 1340; 200 | LastUpgradeCheck = 1400; 201 | TargetAttributes = { 202 | 56DF1EC928B60D0B0020B6F6 = { 203 | CreatedOnToolsVersion = 13.4.1; 204 | }; 205 | }; 206 | }; 207 | buildConfigurationList = 56DF1EC528B60D0B0020B6F6 /* Build configuration list for PBXProject "Streamline" */; 208 | compatibilityVersion = "Xcode 13.0"; 209 | developmentRegion = en; 210 | hasScannedForEncodings = 0; 211 | knownRegions = ( 212 | en, 213 | Base, 214 | ); 215 | mainGroup = 56DF1EC128B60D0B0020B6F6; 216 | packageReferences = ( 217 | 56E81F7A29117A9500CAD9ED /* XCRemoteSwiftPackageReference "SwiftUIX" */, 218 | 56DDF8352954BF3200C28C2B /* XCRemoteSwiftPackageReference "ConcentricOnboarding" */, 219 | ); 220 | productRefGroup = 56DF1ECB28B60D0B0020B6F6 /* Products */; 221 | projectDirPath = ""; 222 | projectRoot = ""; 223 | targets = ( 224 | 56DF1EC928B60D0B0020B6F6 /* Streamline */, 225 | ); 226 | }; 227 | /* End PBXProject section */ 228 | 229 | /* Begin PBXResourcesBuildPhase section */ 230 | 56DF1EC828B60D0B0020B6F6 /* Resources */ = { 231 | isa = PBXResourcesBuildPhase; 232 | buildActionMask = 2147483647; 233 | files = ( 234 | 56DF1ED528B60D0D0020B6F6 /* Preview Assets.xcassets in Resources */, 235 | 5643C1D429251F0300EBBF2D /* Smoke.sks in Resources */, 236 | 56AE8CC3291E83E6008E56BD /* Assets.xcassets in Resources */, 237 | 56DF1ED228B60D0D0020B6F6 /* Assets.xcassets in Resources */, 238 | 5643C1CC29251DEE00EBBF2D /* Assets.xcassets in Resources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | /* End PBXResourcesBuildPhase section */ 243 | 244 | /* Begin PBXSourcesBuildPhase section */ 245 | 56DF1EC628B60D0B0020B6F6 /* Sources */ = { 246 | isa = PBXSourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 56DDF1BB29115A7D00113DFF /* ViewExtensions.swift in Sources */, 250 | 56D0C3CA28B6297100B96243 /* RageTextInputView.swift in Sources */, 251 | 5648615628CDEA1800B7A3E5 /* AppState.swift in Sources */, 252 | 56AE8CC5291E8641008E56BD /* ParticleScene.swift in Sources */, 253 | 56DBA3F829336D1800A442D9 /* WelcomeView.swift in Sources */, 254 | 56DF1EE228B60D390020B6F6 /* ContentView.swift in Sources */, 255 | 56B51A88290D695C00EFEAD1 /* ObsidianVaultSettings.swift in Sources */, 256 | 56741A382953508200F22FBB /* AdvancedSettingsView.swift in Sources */, 257 | 565561D7290C16CB00290876 /* AutocompleteView.swift in Sources */, 258 | 568D87B2290E867E00B1B017 /* KeyboardInput.swift in Sources */, 259 | 568D87B0290E83CC00B1B017 /* CGKeyCode_Extension.swift in Sources */, 260 | 56DBA3FA2933700400A442D9 /* AppDelegate.swift in Sources */, 261 | 56DF1ECE28B60D0B0020B6F6 /* StreamlineApp.swift in Sources */, 262 | 56741A362953503F00F22FBB /* SettingsView.swift in Sources */, 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | /* End PBXSourcesBuildPhase section */ 267 | 268 | /* Begin XCBuildConfiguration section */ 269 | 56DF1EDC28B60D0D0020B6F6 /* Debug */ = { 270 | isa = XCBuildConfiguration; 271 | buildSettings = { 272 | ALWAYS_SEARCH_USER_PATHS = NO; 273 | CLANG_ANALYZER_NONNULL = YES; 274 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 275 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; 276 | CLANG_ENABLE_MODULES = YES; 277 | CLANG_ENABLE_OBJC_ARC = YES; 278 | CLANG_ENABLE_OBJC_WEAK = YES; 279 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 280 | CLANG_WARN_BOOL_CONVERSION = YES; 281 | CLANG_WARN_COMMA = YES; 282 | CLANG_WARN_CONSTANT_CONVERSION = YES; 283 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 284 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 285 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 286 | CLANG_WARN_EMPTY_BODY = YES; 287 | CLANG_WARN_ENUM_CONVERSION = YES; 288 | CLANG_WARN_INFINITE_RECURSION = YES; 289 | CLANG_WARN_INT_CONVERSION = YES; 290 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 291 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 292 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 293 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 294 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 295 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 296 | CLANG_WARN_STRICT_PROTOTYPES = YES; 297 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 298 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 299 | CLANG_WARN_UNREACHABLE_CODE = YES; 300 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 301 | COPY_PHASE_STRIP = NO; 302 | DEAD_CODE_STRIPPING = YES; 303 | DEBUG_INFORMATION_FORMAT = dwarf; 304 | ENABLE_STRICT_OBJC_MSGSEND = YES; 305 | ENABLE_TESTABILITY = YES; 306 | GCC_C_LANGUAGE_STANDARD = gnu11; 307 | GCC_DYNAMIC_NO_PIC = NO; 308 | GCC_NO_COMMON_BLOCKS = YES; 309 | GCC_OPTIMIZATION_LEVEL = 0; 310 | GCC_PREPROCESSOR_DEFINITIONS = ( 311 | "DEBUG=1", 312 | "$(inherited)", 313 | ); 314 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 315 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 316 | GCC_WARN_UNDECLARED_SELECTOR = YES; 317 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 318 | GCC_WARN_UNUSED_FUNCTION = YES; 319 | GCC_WARN_UNUSED_VARIABLE = YES; 320 | MACOSX_DEPLOYMENT_TARGET = 12.3; 321 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 322 | MTL_FAST_MATH = YES; 323 | ONLY_ACTIVE_ARCH = YES; 324 | SDKROOT = macosx; 325 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 326 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 327 | }; 328 | name = Debug; 329 | }; 330 | 56DF1EDD28B60D0D0020B6F6 /* Release */ = { 331 | isa = XCBuildConfiguration; 332 | buildSettings = { 333 | ALWAYS_SEARCH_USER_PATHS = NO; 334 | CLANG_ANALYZER_NONNULL = YES; 335 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 336 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; 337 | CLANG_ENABLE_MODULES = YES; 338 | CLANG_ENABLE_OBJC_ARC = YES; 339 | CLANG_ENABLE_OBJC_WEAK = YES; 340 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 341 | CLANG_WARN_BOOL_CONVERSION = YES; 342 | CLANG_WARN_COMMA = YES; 343 | CLANG_WARN_CONSTANT_CONVERSION = YES; 344 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 345 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 346 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 356 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 357 | CLANG_WARN_STRICT_PROTOTYPES = YES; 358 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 359 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 360 | CLANG_WARN_UNREACHABLE_CODE = YES; 361 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 362 | COPY_PHASE_STRIP = NO; 363 | DEAD_CODE_STRIPPING = YES; 364 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 365 | ENABLE_NS_ASSERTIONS = NO; 366 | ENABLE_STRICT_OBJC_MSGSEND = YES; 367 | GCC_C_LANGUAGE_STANDARD = gnu11; 368 | GCC_NO_COMMON_BLOCKS = YES; 369 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 370 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 371 | GCC_WARN_UNDECLARED_SELECTOR = YES; 372 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 373 | GCC_WARN_UNUSED_FUNCTION = YES; 374 | GCC_WARN_UNUSED_VARIABLE = YES; 375 | MACOSX_DEPLOYMENT_TARGET = 12.3; 376 | MTL_ENABLE_DEBUG_INFO = NO; 377 | MTL_FAST_MATH = YES; 378 | SDKROOT = macosx; 379 | SWIFT_COMPILATION_MODE = wholemodule; 380 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 381 | }; 382 | name = Release; 383 | }; 384 | 56DF1EDF28B60D0D0020B6F6 /* Debug */ = { 385 | isa = XCBuildConfiguration; 386 | buildSettings = { 387 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 388 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 389 | CODE_SIGN_ENTITLEMENTS = Streamline/Streamline.entitlements; 390 | CODE_SIGN_IDENTITY = "-"; 391 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; 392 | CODE_SIGN_STYLE = Automatic; 393 | COMBINE_HIDPI_IMAGES = YES; 394 | CURRENT_PROJECT_VERSION = 1; 395 | DEAD_CODE_STRIPPING = YES; 396 | DEVELOPMENT_ASSET_PATHS = "\"Streamline/Preview Content\""; 397 | DEVELOPMENT_TEAM = HKQARCV8QZ; 398 | ENABLE_HARDENED_RUNTIME = YES; 399 | ENABLE_PREVIEWS = YES; 400 | GENERATE_INFOPLIST_FILE = YES; 401 | INFOPLIST_FILE = Streamline/Info.plist; 402 | INFOPLIST_KEY_CFBundleDisplayName = Streamline; 403 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity"; 404 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 405 | LD_RUNPATH_SEARCH_PATHS = ( 406 | "$(inherited)", 407 | "@executable_path/../Frameworks", 408 | ); 409 | MACOSX_DEPLOYMENT_TARGET = 12.2; 410 | MARKETING_VERSION = 3.5.4; 411 | PRODUCT_BUNDLE_IDENTIFIER = com.rondeau.Streamline; 412 | PRODUCT_NAME = "$(TARGET_NAME)"; 413 | SWIFT_EMIT_LOC_STRINGS = YES; 414 | SWIFT_VERSION = 5.0; 415 | }; 416 | name = Debug; 417 | }; 418 | 56DF1EE028B60D0D0020B6F6 /* Release */ = { 419 | isa = XCBuildConfiguration; 420 | buildSettings = { 421 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 422 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 423 | CODE_SIGN_ENTITLEMENTS = Streamline/Streamline.entitlements; 424 | CODE_SIGN_IDENTITY = "-"; 425 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; 426 | CODE_SIGN_STYLE = Automatic; 427 | COMBINE_HIDPI_IMAGES = YES; 428 | CURRENT_PROJECT_VERSION = 1; 429 | DEAD_CODE_STRIPPING = YES; 430 | DEVELOPMENT_ASSET_PATHS = "\"Streamline/Preview Content\""; 431 | DEVELOPMENT_TEAM = HKQARCV8QZ; 432 | ENABLE_HARDENED_RUNTIME = YES; 433 | ENABLE_PREVIEWS = YES; 434 | GENERATE_INFOPLIST_FILE = YES; 435 | INFOPLIST_FILE = Streamline/Info.plist; 436 | INFOPLIST_KEY_CFBundleDisplayName = Streamline; 437 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity"; 438 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 439 | LD_RUNPATH_SEARCH_PATHS = ( 440 | "$(inherited)", 441 | "@executable_path/../Frameworks", 442 | ); 443 | MACOSX_DEPLOYMENT_TARGET = 12.2; 444 | MARKETING_VERSION = 3.5.4; 445 | PRODUCT_BUNDLE_IDENTIFIER = com.rondeau.Streamline; 446 | PRODUCT_NAME = "$(TARGET_NAME)"; 447 | SWIFT_EMIT_LOC_STRINGS = YES; 448 | SWIFT_VERSION = 5.0; 449 | }; 450 | name = Release; 451 | }; 452 | /* End XCBuildConfiguration section */ 453 | 454 | /* Begin XCConfigurationList section */ 455 | 56DF1EC528B60D0B0020B6F6 /* Build configuration list for PBXProject "Streamline" */ = { 456 | isa = XCConfigurationList; 457 | buildConfigurations = ( 458 | 56DF1EDC28B60D0D0020B6F6 /* Debug */, 459 | 56DF1EDD28B60D0D0020B6F6 /* Release */, 460 | ); 461 | defaultConfigurationIsVisible = 0; 462 | defaultConfigurationName = Release; 463 | }; 464 | 56DF1EDE28B60D0D0020B6F6 /* Build configuration list for PBXNativeTarget "Streamline" */ = { 465 | isa = XCConfigurationList; 466 | buildConfigurations = ( 467 | 56DF1EDF28B60D0D0020B6F6 /* Debug */, 468 | 56DF1EE028B60D0D0020B6F6 /* Release */, 469 | ); 470 | defaultConfigurationIsVisible = 0; 471 | defaultConfigurationName = Release; 472 | }; 473 | /* End XCConfigurationList section */ 474 | 475 | /* Begin XCRemoteSwiftPackageReference section */ 476 | 56DDF8352954BF3200C28C2B /* XCRemoteSwiftPackageReference "ConcentricOnboarding" */ = { 477 | isa = XCRemoteSwiftPackageReference; 478 | repositoryURL = "https://github.com/exyte/ConcentricOnboarding.git"; 479 | requirement = { 480 | kind = upToNextMajorVersion; 481 | minimumVersion = 1.0.0; 482 | }; 483 | }; 484 | 56E81F7A29117A9500CAD9ED /* XCRemoteSwiftPackageReference "SwiftUIX" */ = { 485 | isa = XCRemoteSwiftPackageReference; 486 | repositoryURL = "https://github.com/SwiftUIX/SwiftUIX"; 487 | requirement = { 488 | branch = master; 489 | kind = branch; 490 | }; 491 | }; 492 | /* End XCRemoteSwiftPackageReference section */ 493 | 494 | /* Begin XCSwiftPackageProductDependency section */ 495 | 56E81F7B29117A9500CAD9ED /* SwiftUIX */ = { 496 | isa = XCSwiftPackageProductDependency; 497 | package = 56E81F7A29117A9500CAD9ED /* XCRemoteSwiftPackageReference "SwiftUIX" */; 498 | productName = SwiftUIX; 499 | }; 500 | /* End XCSwiftPackageProductDependency section */ 501 | }; 502 | rootObject = 56DF1EC228B60D0B0020B6F6 /* Project object */; 503 | } 504 | -------------------------------------------------------------------------------- /Streamline.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Streamline.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Streamline.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved: -------------------------------------------------------------------------------- 1 | { 2 | "pins" : [ 3 | { 4 | "identity" : "concentriconboarding", 5 | "kind" : "remoteSourceControl", 6 | "location" : "https://github.com/exyte/ConcentricOnboarding.git", 7 | "state" : { 8 | "revision" : "db2c7730fcd210e763fcc8d4dcfc8cea1b0c5c8b", 9 | "version" : "1.0.3" 10 | } 11 | }, 12 | { 13 | "identity" : "swiftuix", 14 | "kind" : "remoteSourceControl", 15 | "location" : "https://github.com/SwiftUIX/SwiftUIX", 16 | "state" : { 17 | "branch" : "master", 18 | "revision" : "93105dbdc9f47585a56d74cc0c7558f6dd60cea3" 19 | } 20 | } 21 | ], 22 | "version" : 2 23 | } 24 | -------------------------------------------------------------------------------- /Streamline.xcodeproj/project.xcworkspace/xcuserdata/alexisrondeau.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline.xcodeproj/project.xcworkspace/xcuserdata/alexisrondeau.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Streamline.xcodeproj/xcshareddata/xcschemes/Streamline.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /Streamline.xcodeproj/xcuserdata/alexisrondeau.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Streamline.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 1 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 56DF1EC928B60D0B0020B6F6 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Streamline/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/.DS_Store -------------------------------------------------------------------------------- /Streamline/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Streamline 4 | // 5 | // Created by Alexis Rondeau on 27.11.22. 6 | // 7 | 8 | import Foundation 9 | import AppKit 10 | 11 | public class AppDelegate: NSObject, NSApplicationDelegate { 12 | public func applicationWillUpdate(_ notification: Notification) { 13 | DispatchQueue.main.async { 14 | let currentMainMenu = NSApplication.shared.mainMenu 15 | 16 | let editMenu: NSMenuItem? = currentMainMenu?.item(withTitle: "Edit") 17 | if nil != editMenu { 18 | NSApp.mainMenu?.removeItem(editMenu!) 19 | } 20 | 21 | let windowMenu: NSMenuItem? = currentMainMenu?.item(withTitle: "Window") 22 | if nil != windowMenu { 23 | NSApp.mainMenu?.removeItem(windowMenu!) 24 | } 25 | 26 | let viewMenu: NSMenuItem? = currentMainMenu?.item(withTitle: "View") 27 | if nil != viewMenu { 28 | NSApp.mainMenu?.removeItem(viewMenu!) 29 | } 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/.DS_Store -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 1.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 2.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 3.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 4.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 5.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 6.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 7.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 8.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon 9.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/AppIcon.appiconset/AppIcon.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "AppIcon 9.png", 5 | "idiom" : "mac", 6 | "scale" : "1x", 7 | "size" : "16x16" 8 | }, 9 | { 10 | "filename" : "AppIcon 8.png", 11 | "idiom" : "mac", 12 | "scale" : "2x", 13 | "size" : "16x16" 14 | }, 15 | { 16 | "filename" : "AppIcon 7.png", 17 | "idiom" : "mac", 18 | "scale" : "1x", 19 | "size" : "32x32" 20 | }, 21 | { 22 | "filename" : "AppIcon 6.png", 23 | "idiom" : "mac", 24 | "scale" : "2x", 25 | "size" : "32x32" 26 | }, 27 | { 28 | "filename" : "AppIcon 5.png", 29 | "idiom" : "mac", 30 | "scale" : "1x", 31 | "size" : "128x128" 32 | }, 33 | { 34 | "filename" : "AppIcon 4.png", 35 | "idiom" : "mac", 36 | "scale" : "2x", 37 | "size" : "128x128" 38 | }, 39 | { 40 | "filename" : "AppIcon 3.png", 41 | "idiom" : "mac", 42 | "scale" : "1x", 43 | "size" : "256x256" 44 | }, 45 | { 46 | "filename" : "AppIcon 2.png", 47 | "idiom" : "mac", 48 | "scale" : "2x", 49 | "size" : "256x256" 50 | }, 51 | { 52 | "filename" : "AppIcon 1.png", 53 | "idiom" : "mac", 54 | "scale" : "1x", 55 | "size" : "512x512" 56 | }, 57 | { 58 | "filename" : "AppIcon.png", 59 | "idiom" : "mac", 60 | "scale" : "2x", 61 | "size" : "512x512" 62 | } 63 | ], 64 | "info" : { 65 | "author" : "xcode", 66 | "version" : 1 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/CursorColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.000", 9 | "green" : "0.000", 10 | "red" : "0.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "light" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.000", 27 | "green" : "0.000", 28 | "red" : "0.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | }, 33 | { 34 | "appearances" : [ 35 | { 36 | "appearance" : "luminosity", 37 | "value" : "dark" 38 | } 39 | ], 40 | "color" : { 41 | "color-space" : "srgb", 42 | "components" : { 43 | "alpha" : "1.000", 44 | "blue" : "1.000", 45 | "green" : "1.000", 46 | "red" : "1.000" 47 | } 48 | }, 49 | "idiom" : "universal" 50 | } 51 | ], 52 | "info" : { 53 | "author" : "xcode", 54 | "version" : 1 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/FireflyColorFive.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.573", 9 | "green" : "0.482", 10 | "red" : "1.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.573", 27 | "green" : "0.482", 28 | "red" : "1.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/FireflyColorFour.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "1.000", 9 | "green" : "0.838", 10 | "red" : "0.462" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "1.000", 27 | "green" : "0.838", 28 | "red" : "0.462" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/FireflyColorOne.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "1.000", 9 | "green" : "0.216", 10 | "red" : "0.582" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "1.000", 27 | "green" : "0.216", 28 | "red" : "0.582" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/FireflyColorSix.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.573", 9 | "green" : "0.922", 10 | "red" : "1.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.573", 27 | "green" : "0.922", 28 | "red" : "1.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/FireflyColorThree.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "1.000", 9 | "green" : "0.590", 10 | "red" : "0.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "1.000", 27 | "green" : "0.590", 28 | "red" : "0.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/FireflyColorTwo.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.573", 9 | "green" : "0.186", 10 | "red" : "1.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.573", 27 | "green" : "0.186", 28 | "red" : "1.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/FirstWordColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.000", 9 | "green" : "0.000", 10 | "red" : "0.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "light" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.000", 27 | "green" : "0.000", 28 | "red" : "0.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | }, 33 | { 34 | "appearances" : [ 35 | { 36 | "appearance" : "luminosity", 37 | "value" : "dark" 38 | } 39 | ], 40 | "color" : { 41 | "color-space" : "srgb", 42 | "components" : { 43 | "alpha" : "1.000", 44 | "blue" : "1.000", 45 | "green" : "1.000", 46 | "red" : "1.000" 47 | } 48 | }, 49 | "idiom" : "universal" 50 | } 51 | ], 52 | "info" : { 53 | "author" : "xcode", 54 | "version" : 1 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/LineColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.000", 9 | "green" : "0.000", 10 | "red" : "0.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "light" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.000", 27 | "green" : "0.000", 28 | "red" : "0.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | }, 33 | { 34 | "appearances" : [ 35 | { 36 | "appearance" : "luminosity", 37 | "value" : "dark" 38 | } 39 | ], 40 | "color" : { 41 | "color-space" : "srgb", 42 | "components" : { 43 | "alpha" : "1.000", 44 | "blue" : "1.000", 45 | "green" : "1.000", 46 | "red" : "1.000" 47 | } 48 | }, 49 | "idiom" : "universal" 50 | } 51 | ], 52 | "info" : { 53 | "author" : "xcode", 54 | "version" : 1 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/MaskColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "1.000", 9 | "green" : "1.000", 10 | "red" : "1.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "light" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "1.000", 27 | "green" : "1.000", 28 | "red" : "1.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | }, 33 | { 34 | "appearances" : [ 35 | { 36 | "appearance" : "luminosity", 37 | "value" : "dark" 38 | } 39 | ], 40 | "color" : { 41 | "color-space" : "srgb", 42 | "components" : { 43 | "alpha" : "1.000", 44 | "blue" : "0.000", 45 | "green" : "0.000", 46 | "red" : "0.000" 47 | } 48 | }, 49 | "idiom" : "universal" 50 | } 51 | ], 52 | "info" : { 53 | "author" : "xcode", 54 | "version" : 1 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/NotionLogo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "NotionLogo.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "NotionLogo 1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "NotionLogo 2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/NotionLogo.imageset/NotionLogo 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/NotionLogo.imageset/NotionLogo 1.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/NotionLogo.imageset/NotionLogo 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/NotionLogo.imageset/NotionLogo 2.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/NotionLogo.imageset/NotionLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/NotionLogo.imageset/NotionLogo.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/ObsidianLogo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Obsidian.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Obsidian 1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Obsidian 2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/ObsidianLogo.imageset/Obsidian 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/ObsidianLogo.imageset/Obsidian 1.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/ObsidianLogo.imageset/Obsidian 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/ObsidianLogo.imageset/Obsidian 2.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/ObsidianLogo.imageset/Obsidian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/ObsidianLogo.imageset/Obsidian.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/ObsidianPurple.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "1.000", 9 | "green" : "0.448", 10 | "red" : "0.572" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "light" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "1.000", 27 | "green" : "0.448", 28 | "red" : "0.572" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | }, 33 | { 34 | "appearances" : [ 35 | { 36 | "appearance" : "luminosity", 37 | "value" : "dark" 38 | } 39 | ], 40 | "color" : { 41 | "color-space" : "srgb", 42 | "components" : { 43 | "alpha" : "1.000", 44 | "blue" : "0.494", 45 | "green" : "0.221", 46 | "red" : "0.283" 47 | } 48 | }, 49 | "idiom" : "universal" 50 | } 51 | ], 52 | "info" : { 53 | "author" : "xcode", 54 | "version" : 1 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/ObsidianPurpleDark.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "display-p3", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.286", 9 | "green" : "0.133", 10 | "red" : "0.163" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "light" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "display-p3", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.286", 27 | "green" : "0.133", 28 | "red" : "0.163" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | }, 33 | { 34 | "appearances" : [ 35 | { 36 | "appearance" : "luminosity", 37 | "value" : "dark" 38 | } 39 | ], 40 | "color" : { 41 | "color-space" : "display-p3", 42 | "components" : { 43 | "alpha" : "1.000", 44 | "blue" : "0.286", 45 | "green" : "0.133", 46 | "red" : "0.163" 47 | } 48 | }, 49 | "idiom" : "universal" 50 | } 51 | ], 52 | "info" : { 53 | "author" : "xcode", 54 | "version" : 1 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Particle Sprite Atlas.spriteatlas/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "spark.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "spark 1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "spark 2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark 1.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark 2.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/RightSide.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "1.000", 9 | "green" : "1.000", 10 | "red" : "1.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.000", 27 | "green" : "0.000", 28 | "red" : "0.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/SettingsBackground.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.921", 9 | "green" : "0.921", 10 | "red" : "0.921" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.130", 27 | "green" : "0.130", 28 | "red" : "0.130" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Start.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Start.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Start 1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Start 2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Start.imageset/Start 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Start.imageset/Start 1.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Start.imageset/Start 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Start.imageset/Start 2.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Start.imageset/Start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Start.imageset/Start.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/TextColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0.476", 9 | "green" : "0.476", 10 | "red" : "0.476" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "light" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.476", 27 | "green" : "0.476", 28 | "red" : "0.476" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | }, 33 | { 34 | "appearances" : [ 35 | { 36 | "appearance" : "luminosity", 37 | "value" : "dark" 38 | } 39 | ], 40 | "color" : { 41 | "color-space" : "srgb", 42 | "components" : { 43 | "alpha" : "1.000", 44 | "blue" : "0.476", 45 | "green" : "0.476", 46 | "red" : "0.476" 47 | } 48 | }, 49 | "idiom" : "universal" 50 | } 51 | ], 52 | "info" : { 53 | "author" : "xcode", 54 | "version" : 1 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Vault.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Vault.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Vault 1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Vault 2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Vault.imageset/Vault 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Vault.imageset/Vault 1.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Vault.imageset/Vault 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Vault.imageset/Vault 2.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Vault.imageset/Vault.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Vault.imageset/Vault.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Welcome.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Welcome.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "Welcome 1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "Welcome 2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Welcome.imageset/Welcome 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Welcome.imageset/Welcome 1.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Welcome.imageset/Welcome 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Welcome.imageset/Welcome 2.png -------------------------------------------------------------------------------- /Streamline/Assets.xcassets/Welcome.imageset/Welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Assets.xcassets/Welcome.imageset/Welcome.png -------------------------------------------------------------------------------- /Streamline/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleURLTypes 6 | 7 | 8 | CFBundleURLSchemes 9 | 10 | streamline 11 | 12 | 13 | 14 | com.apple.security.files.bookmarks.app-scope 15 | 16 | com.apple.security.files.user-selected.read-write 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Streamline/Keyboard/CGKeyCode_Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CGKeyCode_Extension.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 30.10.22. 6 | // 7 | // From: https://gist.github.com/chipjarred/cbb324c797aec865918a8045c4b51d14 8 | 9 | import CoreGraphics 10 | 11 | extension CGKeyCode 12 | { 13 | /* 14 | * From Events.h in Carbon.framework 15 | * Summary: 16 | * Virtual keycodes 17 | * 18 | * Discussion: 19 | * These constants are the virtual keycodes defined originally in 20 | * Inside Mac Volume V, pg. V-191. They identify physical keys on a 21 | * keyboard. Those constants with "ANSI" in the name are labeled 22 | * according to the key position on an ANSI-standard US keyboard. 23 | * For example, kVK_ANSI_A indicates the virtual keycode for the key 24 | * with the letter 'A' in the US keyboard layout. Other keyboard 25 | * layouts may have the 'A' key label on a different physical key; 26 | * in this case, pressing 'A' will generate a different virtual 27 | * keycode. 28 | */ 29 | static let kVK_ANSI_A : CGKeyCode = 0x00 30 | static let kVK_ANSI_S : CGKeyCode = 0x01 31 | static let kVK_ANSI_D : CGKeyCode = 0x02 32 | static let kVK_ANSI_F : CGKeyCode = 0x03 33 | static let kVK_ANSI_H : CGKeyCode = 0x04 34 | static let kVK_ANSI_G : CGKeyCode = 0x05 35 | static let kVK_ANSI_Z : CGKeyCode = 0x06 36 | static let kVK_ANSI_X : CGKeyCode = 0x07 37 | static let kVK_ANSI_C : CGKeyCode = 0x08 38 | static let kVK_ANSI_V : CGKeyCode = 0x09 39 | static let kVK_ANSI_B : CGKeyCode = 0x0B 40 | static let kVK_ANSI_Q : CGKeyCode = 0x0C 41 | static let kVK_ANSI_W : CGKeyCode = 0x0D 42 | static let kVK_ANSI_E : CGKeyCode = 0x0E 43 | static let kVK_ANSI_R : CGKeyCode = 0x0F 44 | static let kVK_ANSI_Y : CGKeyCode = 0x10 45 | static let kVK_ANSI_T : CGKeyCode = 0x11 46 | static let kVK_ANSI_1 : CGKeyCode = 0x12 47 | static let kVK_ANSI_2 : CGKeyCode = 0x13 48 | static let kVK_ANSI_3 : CGKeyCode = 0x14 49 | static let kVK_ANSI_4 : CGKeyCode = 0x15 50 | static let kVK_ANSI_6 : CGKeyCode = 0x16 51 | static let kVK_ANSI_5 : CGKeyCode = 0x17 52 | static let kVK_ANSI_Equal : CGKeyCode = 0x18 53 | static let kVK_ANSI_9 : CGKeyCode = 0x19 54 | static let kVK_ANSI_7 : CGKeyCode = 0x1A 55 | static let kVK_ANSI_Minus : CGKeyCode = 0x1B 56 | static let kVK_ANSI_8 : CGKeyCode = 0x1C 57 | static let kVK_ANSI_0 : CGKeyCode = 0x1D 58 | static let kVK_ANSI_RightBracket : CGKeyCode = 0x1E 59 | static let kVK_ANSI_O : CGKeyCode = 0x1F 60 | static let kVK_ANSI_U : CGKeyCode = 0x20 61 | static let kVK_ANSI_LeftBracket : CGKeyCode = 0x21 62 | static let kVK_ANSI_I : CGKeyCode = 0x22 63 | static let kVK_ANSI_P : CGKeyCode = 0x23 64 | static let kVK_ANSI_L : CGKeyCode = 0x25 65 | static let kVK_ANSI_J : CGKeyCode = 0x26 66 | static let kVK_ANSI_Quote : CGKeyCode = 0x27 67 | static let kVK_ANSI_K : CGKeyCode = 0x28 68 | static let kVK_ANSI_Semicolon : CGKeyCode = 0x29 69 | static let kVK_ANSI_Backslash : CGKeyCode = 0x2A 70 | static let kVK_ANSI_Comma : CGKeyCode = 0x2B 71 | static let kVK_ANSI_Slash : CGKeyCode = 0x2C 72 | static let kVK_ANSI_N : CGKeyCode = 0x2D 73 | static let kVK_ANSI_M : CGKeyCode = 0x2E 74 | static let kVK_ANSI_Period : CGKeyCode = 0x2F 75 | static let kVK_ANSI_Grave : CGKeyCode = 0x32 76 | static let kVK_ANSI_KeypadDecimal : CGKeyCode = 0x41 77 | static let kVK_ANSI_KeypadMultiply : CGKeyCode = 0x43 78 | static let kVK_ANSI_KeypadPlus : CGKeyCode = 0x45 79 | static let kVK_ANSI_KeypadClear : CGKeyCode = 0x47 80 | static let kVK_ANSI_KeypadDivide : CGKeyCode = 0x4B 81 | static let kVK_ANSI_KeypadEnter : CGKeyCode = 0x4C 82 | static let kVK_ANSI_KeypadMinus : CGKeyCode = 0x4E 83 | static let kVK_ANSI_KeypadEquals : CGKeyCode = 0x51 84 | static let kVK_ANSI_Keypad0 : CGKeyCode = 0x52 85 | static let kVK_ANSI_Keypad1 : CGKeyCode = 0x53 86 | static let kVK_ANSI_Keypad2 : CGKeyCode = 0x54 87 | static let kVK_ANSI_Keypad3 : CGKeyCode = 0x55 88 | static let kVK_ANSI_Keypad4 : CGKeyCode = 0x56 89 | static let kVK_ANSI_Keypad5 : CGKeyCode = 0x57 90 | static let kVK_ANSI_Keypad6 : CGKeyCode = 0x58 91 | static let kVK_ANSI_Keypad7 : CGKeyCode = 0x59 92 | static let kVK_ANSI_Keypad8 : CGKeyCode = 0x5B 93 | static let kVK_ANSI_Keypad9 : CGKeyCode = 0x5C 94 | 95 | // keycodes for keys that are independent of keyboard layout 96 | static let kVK_Return : CGKeyCode = 0x24 97 | static let kVK_Tab : CGKeyCode = 0x30 98 | static let kVK_Space : CGKeyCode = 0x31 99 | static let kVK_Delete : CGKeyCode = 0x33 100 | static let kVK_Escape : CGKeyCode = 0x35 101 | static let kVK_Command : CGKeyCode = 0x37 102 | static let kVK_Shift : CGKeyCode = 0x38 103 | static let kVK_CapsLock : CGKeyCode = 0x39 104 | static let kVK_Option : CGKeyCode = 0x3A 105 | static let kVK_Control : CGKeyCode = 0x3B 106 | static let kVK_RightCommand : CGKeyCode = 0x36 // Out of order 107 | static let kVK_RightShift : CGKeyCode = 0x3C 108 | static let kVK_RightOption : CGKeyCode = 0x3D 109 | static let kVK_RightControl : CGKeyCode = 0x3E 110 | static let kVK_Function : CGKeyCode = 0x3F 111 | static let kVK_F17 : CGKeyCode = 0x40 112 | static let kVK_VolumeUp : CGKeyCode = 0x48 113 | static let kVK_VolumeDown : CGKeyCode = 0x49 114 | static let kVK_Mute : CGKeyCode = 0x4A 115 | static let kVK_F18 : CGKeyCode = 0x4F 116 | static let kVK_F19 : CGKeyCode = 0x50 117 | static let kVK_F20 : CGKeyCode = 0x5A 118 | static let kVK_F5 : CGKeyCode = 0x60 119 | static let kVK_F6 : CGKeyCode = 0x61 120 | static let kVK_F7 : CGKeyCode = 0x62 121 | static let kVK_F3 : CGKeyCode = 0x63 122 | static let kVK_F8 : CGKeyCode = 0x64 123 | static let kVK_F9 : CGKeyCode = 0x65 124 | static let kVK_F11 : CGKeyCode = 0x67 125 | static let kVK_F13 : CGKeyCode = 0x69 126 | static let kVK_F16 : CGKeyCode = 0x6A 127 | static let kVK_F14 : CGKeyCode = 0x6B 128 | static let kVK_F10 : CGKeyCode = 0x6D 129 | static let kVK_F12 : CGKeyCode = 0x6F 130 | static let kVK_F15 : CGKeyCode = 0x71 131 | static let kVK_Help : CGKeyCode = 0x72 132 | static let kVK_Home : CGKeyCode = 0x73 133 | static let kVK_PageUp : CGKeyCode = 0x74 134 | static let kVK_ForwardDelete : CGKeyCode = 0x75 135 | static let kVK_F4 : CGKeyCode = 0x76 136 | static let kVK_End : CGKeyCode = 0x77 137 | static let kVK_F2 : CGKeyCode = 0x78 138 | static let kVK_PageDown : CGKeyCode = 0x79 139 | static let kVK_F1 : CGKeyCode = 0x7A 140 | static let kVK_LeftArrow : CGKeyCode = 0x7B 141 | static let kVK_RightArrow : CGKeyCode = 0x7C 142 | static let kVK_DownArrow : CGKeyCode = 0x7D 143 | static let kVK_UpArrow : CGKeyCode = 0x7E 144 | 145 | // ISO keyboards only 146 | static let kVK_ISO_Section : CGKeyCode = 0x0A 147 | 148 | // JIS keyboards only 149 | static let kVK_JIS_Yen : CGKeyCode = 0x5D 150 | static let kVK_JIS_Underscore : CGKeyCode = 0x5E 151 | static let kVK_JIS_KeypadComma : CGKeyCode = 0x5F 152 | static let kVK_JIS_Eisu : CGKeyCode = 0x66 153 | static let kVK_JIS_Kana : CGKeyCode = 0x68 154 | 155 | var isModifier: Bool { 156 | return (.kVK_RightCommand...(.kVK_Function)).contains(self) 157 | } 158 | 159 | var baseModifier: CGKeyCode? 160 | { 161 | if (.kVK_Command...(.kVK_Control)).contains(self) 162 | || self == .kVK_Function 163 | { 164 | return self 165 | } 166 | 167 | switch self 168 | { 169 | case .kVK_RightShift: return .kVK_Shift 170 | case .kVK_RightCommand: return .kVK_Command 171 | case .kVK_RightOption: return .kVK_Option 172 | case .kVK_RightControl: return .kVK_Control 173 | 174 | default: return nil 175 | } 176 | } 177 | 178 | var isPressed: Bool { 179 | CGEventSource.keyState(.combinedSessionState, key: self) 180 | } 181 | } 182 | -------------------------------------------------------------------------------- /Streamline/Keyboard/KeyboardInput.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KeyboardInput.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 30.10.22. 6 | // 7 | import SwiftUI 8 | 9 | class KeyboardInput: ObservableObject { 10 | @Published var keyCode: UInt16 = 0 11 | } 12 | 13 | struct KeyboardEvent: NSViewRepresentable { 14 | @Binding var keyStorage: UInt16 // << here !! 15 | 16 | init(into storage: Binding) { 17 | _keyStorage = storage 18 | } 19 | 20 | class KeyView: NSView { 21 | var owner: KeyboardEvent? // << view holder 22 | override var acceptsFirstResponder: Bool { true } 23 | override func keyDown(with event: NSEvent) { 24 | owner?.keyStorage = event.keyCode 25 | } 26 | } 27 | 28 | func makeNSView(context: Context) -> NSView { 29 | let view = KeyView() 30 | view.owner = self // << inject 31 | DispatchQueue.main.async { 32 | view.window?.makeFirstResponder(view) 33 | } 34 | return view 35 | } 36 | 37 | func updateNSView(_ nsView: NSView, context: Context) { 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Streamline/Particles/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Streamline/Particles/Assets.xcassets/Particle Sprite Atlas.spriteatlas/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Streamline/Particles/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "spark.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Streamline/Particles/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Particles/Assets.xcassets/Particle Sprite Atlas.spriteatlas/spark.imageset/spark.png -------------------------------------------------------------------------------- /Streamline/Particles/ParticleScene.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ParticleScene.swift 3 | // Streamline 4 | // 5 | // Created by Alexis Rondeau on 11.11.22. 6 | // 7 | 8 | import SpriteKit 9 | import Swift 10 | import SwiftUI 11 | 12 | class ParticleScene: SKScene { 13 | public var snowEmitterNode = SKEmitterNode(fileNamed: "Smoke.sks") 14 | 15 | public var state: AppState? 16 | 17 | func emitOne() { 18 | self.start() 19 | DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(50), execute: { 20 | self.stop() 21 | }) 22 | } 23 | 24 | func start() { 25 | guard let snowEmitterNode = snowEmitterNode else { return } 26 | 27 | let colors = [ 28 | NSColor(Color("FireflyColorOne")), 29 | NSColor(Color("FireflyColorTwo")), 30 | NSColor(Color("FireflyColorThree")), 31 | NSColor(Color("FireflyColorFour")), 32 | NSColor(Color("FireflyColorFive")), 33 | NSColor(Color("FireflyColorSix")) 34 | ] 35 | 36 | snowEmitterNode.particleColorSequence = nil 37 | snowEmitterNode.particleColor = colors.randomElement()! 38 | snowEmitterNode.particlePosition = CGPoint(x: state!.dynamicWindowSize.width * state!.ratioLeft, y: state!.dynamicWindowSize.height / 2 + 50) 39 | snowEmitterNode.particleBirthRate = 1 40 | } 41 | 42 | func stop() { 43 | guard let snowEmitterNode = snowEmitterNode else { return } 44 | snowEmitterNode.particleBirthRate = 0 45 | } 46 | 47 | override func didMove(to view: SKView) { 48 | guard let snowEmitterNode = snowEmitterNode else { return } 49 | snowEmitterNode.particleBirthRate = 0 50 | addChild(snowEmitterNode) 51 | } 52 | 53 | override func didChangeSize(_ oldSize: CGSize) { 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Streamline/Particles/Smoke.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Particles/Smoke.sks -------------------------------------------------------------------------------- /Streamline/Preview Content/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akaalias/Streamline/ef7a316659f8c89516f7a4cfa25503947929371c/Streamline/Preview Content/.DS_Store -------------------------------------------------------------------------------- /Streamline/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Streamline/Settings/AdvancedSettingsView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AdvancedSettingsView.swift 3 | // Streamline 4 | // 5 | // Created by Alexis Rondeau on 21.12.22. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct AdvancedSettingsView: View { 11 | @EnvironmentObject var state: AppState 12 | @AppStorage("logStorage") private var logStorage: String = "" 13 | @State var result: String = "" 14 | @State private var selection: String? 15 | 16 | var body: some View { 17 | VStack { 18 | Text("Application Logs") 19 | .font(.title2) 20 | 21 | List(selection: $selection) { 22 | ForEach(splitLogs(), id: \.self) { item in 23 | Text(item) 24 | } 25 | } 26 | .padding() 27 | .frame(height: 150) 28 | .listStyle(.automatic) 29 | 30 | Button("Reset All Settings, Logs and Caches") { 31 | state.resetEverything() 32 | result = "All settings, logs and caches were reset." 33 | } 34 | .padding() 35 | 36 | Text(result) 37 | .padding() 38 | 39 | } 40 | } 41 | 42 | private func splitLogs() -> [String] { 43 | return logStorage.components(separatedBy: " | ") 44 | } 45 | } 46 | 47 | struct AdvancedSettingsView_Previews: PreviewProvider { 48 | static var previews: some View { 49 | AdvancedSettingsView() 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Streamline/Settings/ObsidianVaultSettings.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FolderSetupView.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 29.10.22. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct ObsidianVaultSettings: View { 11 | @EnvironmentObject var state: AppState 12 | @State var showFileChooser = false 13 | @AppStorage("folderBookmarkData") private var folderBookmarkData: Data = Data() 14 | @AppStorage("vaultUrl") private var vaultURL: URL = URL(fileURLWithPath: "~") 15 | @AppStorage("logStorage") private var logStorage: String = "" 16 | 17 | var body: some View { 18 | VStack { 19 | Image("ObsidianLogo") 20 | .resizable() 21 | .scaledToFit() 22 | .frame(width: 100) 23 | 24 | Text("Select Your Obsidian Vault Folder for Auto-Completion") 25 | .padding(5) 26 | 27 | Button { 28 | setupFolder() 29 | } label: { 30 | Text("Select Vault Folder") 31 | } 32 | .buttonStyle(.borderedProminent) 33 | .padding(5) 34 | 35 | Text(String(state.markdownFileNames.count) + " markdown file-names from your vault are cached in-memory") 36 | .font(.body) 37 | .padding(5) 38 | } 39 | 40 | } 41 | 42 | func setupFolder() { 43 | let panel = NSOpenPanel() 44 | 45 | panel.allowsMultipleSelection = false 46 | panel.canChooseDirectories = true 47 | panel.canChooseFiles = false 48 | 49 | if panel.runModal() == .OK { 50 | let url = panel.url 51 | do { 52 | let bookmarkData = try url?.bookmarkData(options: .withSecurityScope, includingResourceValuesForKeys: nil, relativeTo: nil) 53 | self.folderBookmarkData = bookmarkData! 54 | self.vaultURL = url! 55 | 56 | state.cacheMarkdownFilenames(url: url!) 57 | } catch { 58 | logStorage += " | Error while accessing folder!" 59 | } 60 | } 61 | } 62 | 63 | func resetVault() { 64 | state.resetEverything() 65 | } 66 | } 67 | 68 | struct FolderSetupView_Previews: PreviewProvider { 69 | static var previews: some View { 70 | ObsidianVaultSettings() 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /Streamline/Settings/SettingsView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SettingsView.swift 3 | // Streamline 4 | // 5 | // Created by Alexis Rondeau on 21.12.22. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct SettingsView: View { 11 | @EnvironmentObject var state: AppState 12 | 13 | var body: some View { 14 | ZStack { 15 | TabView { 16 | ObsidianVaultSettings() 17 | .tabItem { 18 | Label("Obsidian Vault", systemImage: "list.dash") 19 | } 20 | 21 | AdvancedSettingsView() 22 | .tabItem { 23 | Label("Advanced", systemImage: "gear") 24 | } 25 | } 26 | .frame(width: 600, height: 400) 27 | 28 | Button{ 29 | state.showSettingsPanel.toggle() 30 | } label: { 31 | Label("", systemImage: "xmark.circle.fill") 32 | .font(.title) 33 | } 34 | .buttonStyle(.plain) 35 | .offset(x: 300, y: -180) 36 | } 37 | 38 | } 39 | } 40 | 41 | struct SettingsView_Previews: PreviewProvider { 42 | static var previews: some View { 43 | SettingsView() 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Streamline/State/AppState.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppState.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 11.09.22. 6 | // 7 | 8 | import Foundation 9 | import SwiftUI 10 | import Combine 11 | import SpriteKit 12 | 13 | class AppState: ObservableObject { 14 | 15 | @Published var visibleCharactersStringArray: [String] = [] 16 | @Published var visibleLastWordStringArray: [String] = [] 17 | @Published var attributedString = AttributedString("") 18 | @Published var firstPartAttributedString = AttributedString("") 19 | @Published var lastWordAttributedString = AttributedString("") 20 | @Published var allCharactersStorageStringArray: [String] 21 | 22 | // Autocomplete 23 | @Published var currentlySearching = false 24 | @Published var searchStringArray: [String] = [] 25 | @Published var selectedAutocompleteOption: String = "" 26 | @Published var selectIndex = -1 27 | @Published var markdownFileNames: [String] = [] 28 | 29 | // Layout 30 | @Published var defaultFontSize = 38.0 31 | @Published var ratioLeft = 0.6 32 | @Published var ratioRight = 0.4 33 | @Published var ratioTop = 2.25 34 | @Published var folderConfigFrameSize = 400.0 35 | @Published var dynamicWindowSize = CGSize() 36 | @Published var fontSizeFactor = 20.0 37 | 38 | // Umlaute 39 | @Published var umlautModifierTyped = false 40 | 41 | // Settings 42 | @Published var showSettingsPanel = false 43 | 44 | // Particles 45 | @Published var scene: ParticleScene 46 | var timer: Timer? 47 | @Published var secondsElapsed: Int = 0 48 | 49 | @AppStorage("folderBookmarkData") private var folderBookmarkData: Data = Data() 50 | @AppStorage("vaultURL") private var vaultURL: URL? 51 | @AppStorage("logStorage") private var logStorage: String = "" 52 | @AppStorage("showWelcomeScreen") public var showWelcomeScreen: Bool = true 53 | 54 | init() { 55 | allCharactersStorageStringArray = [] 56 | scene = ParticleScene() 57 | scene.scaleMode = .resizeFill 58 | scene.backgroundColor = .clear 59 | scene.state = self 60 | } 61 | 62 | func calculatedFontSize() -> CGFloat { 63 | return self.dynamicWindowSize.height / fontSizeFactor 64 | } 65 | 66 | func resetSessionData() { 67 | allCharactersStorageStringArray = [] 68 | visibleCharactersStringArray = [] 69 | visibleLastWordStringArray = [] 70 | attributedString = AttributedString("") 71 | } 72 | 73 | func resetEverything() { 74 | resetSearch() 75 | resetSessionData() 76 | 77 | // Settings 78 | markdownFileNames = [] 79 | folderBookmarkData = Data() 80 | vaultURL = URL(fileURLWithPath: "~") 81 | showWelcomeScreen = true 82 | } 83 | 84 | func autocompleteSearchMatches() -> [String] { 85 | if(searchStringArray.count <= 3) { return [] } 86 | let filteredFileNames = markdownFileNames.filter { $0.localizedCaseInsensitiveContains(searchStringArray.joined()) } 87 | if(filteredFileNames.count >= 6) { 88 | return Array(filteredFileNames.prefix(upTo: 6)) 89 | } else { 90 | return filteredFileNames 91 | } 92 | } 93 | 94 | func selectNextAutocompleteOptionsDown() { 95 | if(selectIndex < autocompleteSearchMatches().count - 1) { 96 | selectIndex += 1 97 | selectOption() 98 | } 99 | } 100 | 101 | func selectNextAutocompleteOptionsUp() { 102 | if(selectIndex >= 0) { 103 | selectIndex -= 1 104 | selectOption() 105 | } 106 | } 107 | 108 | func selectOption() { 109 | selectedAutocompleteOption = searchStringArray.joined() 110 | 111 | if(selectIndex >= 0 && selectIndex < autocompleteSearchMatches().count) { 112 | selectedAutocompleteOption = autocompleteSearchMatches()[selectIndex] 113 | } 114 | } 115 | 116 | func resetSearch() { 117 | selectedAutocompleteOption = searchStringArray.joined() 118 | selectIndex = -1 119 | } 120 | 121 | func setupCacheFromBookmark() { 122 | if(!self.folderBookmarkData.isEmpty) { 123 | do { 124 | var isStale = false 125 | let newURL = try URL(resolvingBookmarkData: self.folderBookmarkData, options: .withSecurityScope, relativeTo: nil, bookmarkDataIsStale: &isStale) 126 | 127 | if isStale { 128 | logStorage += " | bookmark is stale." 129 | } 130 | 131 | if !newURL.startAccessingSecurityScopedResource() { 132 | logStorage += " | startAccessingSecurityScopedResource returned false." 133 | } 134 | 135 | self.cacheMarkdownFilenames(url: newURL) 136 | 137 | newURL.stopAccessingSecurityScopedResource() 138 | } catch { 139 | logStorage += " | Error while decoding bookmark URL data" 140 | } 141 | } 142 | } 143 | 144 | func cacheMarkdownFilenames(url: URL) { 145 | self.markdownFileNames = [] 146 | if let enumerator = FileManager.default.enumerator(at: url, includingPropertiesForKeys: [.isRegularFileKey, .documentIdentifierKey, .contentTypeKey, .nameKey], options: [.skipsHiddenFiles, .skipsPackageDescendants]) { 147 | for case let fileURL as URL in enumerator { 148 | do { 149 | let fileAttributes = try fileURL.resourceValues(forKeys:[.isRegularFileKey, .contentTypeKey]) 150 | if (fileAttributes.isRegularFile! && fileAttributes.contentType != nil) { 151 | if(fileAttributes.contentType != nil) { 152 | if(String(fileURL.lastPathComponent).reversed().starts(with: "dm.")) { 153 | let fileName = String(fileURL.lastPathComponent.dropLast(3)) 154 | self.markdownFileNames.append(fileName) 155 | } 156 | } 157 | } 158 | } catch { 159 | logStorage += " | Error \(error) while caching \(fileURL.absoluteString)" 160 | } 161 | } 162 | } 163 | 164 | self.markdownFileNames = Array(Set(self.markdownFileNames)) 165 | } 166 | 167 | func handleKeyEvent(event: NSEvent) -> NSEvent { 168 | var lastTypedCharacterIgnoringModifiers = event.charactersIgnoringModifiers ?? "" 169 | let _ = event.characters ?? "" 170 | let _ = event.characters(byApplyingModifiers: event.modifierFlags) ?? "" 171 | let modifierFlags = event.modifierFlags 172 | 173 | if(modifierFlags.contains(.command)) { 174 | // Ignore Command-[...] 175 | return event 176 | } 177 | 178 | if(modifierFlags.contains(.option) && lastTypedCharacterIgnoringModifiers == "u") { 179 | self.umlautModifierTyped = true 180 | return event 181 | } 182 | 183 | // Autocomplete triggered 184 | if(self.currentlySearching) { 185 | if(event.characters == "\u{1B}") { 186 | // ESC = Optional("\u{1B}") 187 | let appendString = "]]" 188 | self.selectedAutocompleteOption = "" 189 | let arrayLiteral = Array(arrayLiteral: appendString) 190 | self.allCharactersStorageStringArray.append(contentsOf: arrayLiteral) 191 | self.visibleCharactersStringArray.append(contentsOf: arrayLiteral) 192 | self.visibleLastWordStringArray.append(contentsOf: arrayLiteral) 193 | self.currentlySearching = false 194 | 195 | } else if (event.keyCode == 51) { 196 | // Backspace 197 | self.searchStringArray = self.searchStringArray.dropLast() 198 | self.resetSearch() 199 | } else if (event.keyCode == 125 || event.keyCode == 48 ) { 200 | // Arrow DOWN 201 | self.selectNextAutocompleteOptionsDown() 202 | } else if (event.keyCode == 126) { 203 | // Arrow UP 204 | self.selectNextAutocompleteOptionsUp() 205 | } else if (event.keyCode == 36) { 206 | var appendString = self.selectedAutocompleteOption 207 | 208 | // Enter 209 | if(!self.selectedAutocompleteOption.reversed().starts(with: "]]")) { 210 | appendString = appendString + "]]" 211 | } 212 | self.selectedAutocompleteOption = "" 213 | 214 | let arrayLiteral = Array(arrayLiteral: appendString) 215 | self.allCharactersStorageStringArray.append(contentsOf: arrayLiteral) 216 | self.visibleCharactersStringArray.append(contentsOf: arrayLiteral) 217 | self.visibleLastWordStringArray.append(contentsOf: arrayLiteral) 218 | self.currentlySearching = false 219 | } else { 220 | self.searchStringArray.append(lastTypedCharacterIgnoringModifiers) 221 | self.resetSearch() 222 | } 223 | } else { 224 | // Character input / Normal writing 225 | if(lastTypedCharacterIgnoringModifiers == "[" && self.allCharactersStorageStringArray.last == "[") { 226 | self.currentlySearching = true 227 | self.searchStringArray = [] 228 | self.visibleLastWordStringArray = [] 229 | self.visibleLastWordStringArray.append("[") 230 | } 231 | 232 | // Umlaute 233 | if(self.umlautModifierTyped) { 234 | if(lastTypedCharacterIgnoringModifiers == "a") { 235 | lastTypedCharacterIgnoringModifiers = "ä" 236 | } 237 | if(modifierFlags.contains(.shift) && lastTypedCharacterIgnoringModifiers == "A") { 238 | lastTypedCharacterIgnoringModifiers = "Ä" 239 | } 240 | 241 | if(lastTypedCharacterIgnoringModifiers == "o") { 242 | lastTypedCharacterIgnoringModifiers = "ö" 243 | } 244 | if(modifierFlags.contains(.shift) && lastTypedCharacterIgnoringModifiers == "O") { 245 | lastTypedCharacterIgnoringModifiers = "Ö" 246 | } 247 | 248 | if(lastTypedCharacterIgnoringModifiers == "u") { 249 | lastTypedCharacterIgnoringModifiers = "ü" 250 | } 251 | if(modifierFlags.contains(.shift) && lastTypedCharacterIgnoringModifiers == "U") { 252 | lastTypedCharacterIgnoringModifiers = "Ü" 253 | } 254 | 255 | self.umlautModifierTyped = false 256 | } 257 | 258 | if(event.keyCode == 36 || event.keyCode == 51) { 259 | // Acknowledge enter and backspace without deleting 260 | // TBD: Add TAB 261 | self.scene.emitOne() 262 | return event 263 | } else { 264 | // Store and display all others 265 | self.allCharactersStorageStringArray.append(lastTypedCharacterIgnoringModifiers) 266 | self.visibleCharactersStringArray.append(lastTypedCharacterIgnoringModifiers) 267 | if(lastTypedCharacterIgnoringModifiers == " ") { 268 | self.visibleLastWordStringArray = [] 269 | } else { 270 | self.visibleLastWordStringArray.append(lastTypedCharacterIgnoringModifiers) 271 | } 272 | } 273 | } 274 | 275 | self.firstPartAttributedString = AttributedString(self.visibleCharactersStringArray.dropLast(self.visibleLastWordStringArray.count).joined()) 276 | self.firstPartAttributedString.foregroundColor = Color("TextColor") 277 | self.lastWordAttributedString = AttributedString(self.visibleLastWordStringArray.joined()) 278 | 279 | if(self.visibleLastWordStringArray.joined().starts(with: "[[")) { 280 | self.lastWordAttributedString.foregroundColor = Color("ObsidianPurple") 281 | } else { 282 | self.lastWordAttributedString.foregroundColor = Color("FirstWordColor") 283 | } 284 | 285 | self.attributedString = AttributedString("") 286 | self.attributedString.append(self.firstPartAttributedString) 287 | self.attributedString.append(self.lastWordAttributedString) 288 | 289 | return event 290 | } 291 | } 292 | -------------------------------------------------------------------------------- /Streamline/Streamline.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-write 8 | 9 | com.apple.security.network.client 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Streamline/StreamlineApp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RageEditorApp.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 24.08.22. 6 | // 7 | 8 | import SwiftUI 9 | 10 | @main 11 | struct StreamlineApp: App { 12 | @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate 13 | @AppStorage("showDemoVideo") private var showDemoVideo: Bool = true 14 | @StateObject var state = AppState() 15 | 16 | var body: some Scene { 17 | WindowGroup { 18 | ContentView() 19 | .environmentObject(state) 20 | .onAppear { 21 | DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(100), execute: { 22 | if let window = NSApplication.shared.windows.last { 23 | window.toggleFullScreen(nil) 24 | } 25 | }) 26 | } 27 | } 28 | .commands { 29 | CommandGroup(replacing: CommandGroupPlacement.newItem) { 30 | Button("Save as Markdown") { 31 | save() 32 | } 33 | .keyboardShortcut("s", modifiers: [.command]) 34 | 35 | Button("Reset") { 36 | self.state.resetSessionData() 37 | } 38 | .keyboardShortcut("k", modifiers: [.command]) 39 | } 40 | 41 | CommandGroup(replacing: CommandGroupPlacement.appSettings) { 42 | Button("Settings") { 43 | state.showSettingsPanel = true 44 | } 45 | } 46 | 47 | CommandGroup(after: .help) { 48 | Button("Show Welcome Screen") { 49 | state.showWelcomeScreen = true 50 | } 51 | } 52 | } 53 | .windowStyle(HiddenTitleBarWindowStyle()) 54 | } 55 | 56 | func save() { 57 | let savePanel = NSSavePanel() 58 | let date = Date() 59 | let formatter = DateFormatter() 60 | formatter.dateFormat = "dd-MM-YY" 61 | let dateString = formatter.string(from: date) 62 | 63 | savePanel.allowedFileTypes = ["md"] 64 | savePanel.canCreateDirectories = true 65 | savePanel.isExtensionHidden = false 66 | savePanel.allowsOtherFileTypes = false 67 | savePanel.title = "Save your Streamline Session as markdown" 68 | savePanel.message = "Choose a folder and a name" 69 | savePanel.prompt = "Save now" 70 | savePanel.nameFieldLabel = "File name:" 71 | savePanel.nameFieldStringValue = "Streamline Note " + dateString 72 | 73 | // Present the save panel as a modal window. 74 | let response = savePanel.runModal() 75 | guard response == .OK, let saveURL = savePanel.url else { return } 76 | try? self.state.allCharactersStorageStringArray.joined().write(to: saveURL, atomically: true, encoding: .utf8) 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /Streamline/Updates/CheckForUpdatesViewModel.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import Sparkle 3 | 4 | // This view model class publishes when new updates can be checked by the user 5 | final class CheckForUpdatesViewModel: ObservableObject { 6 | @Published var canCheckForUpdates = false 7 | 8 | init(updater: SPUUpdater) { 9 | updater.publisher(for: \.canCheckForUpdates) 10 | .assign(to: &$canCheckForUpdates) 11 | } 12 | } 13 | 14 | // This is the view for the Check for Updates menu item 15 | // Note this intermediate view is necessary for the disabled state on the menu item to work properly before Monterey. 16 | // See https://stackoverflow.com/questions/68553092/menu-not-updating-swiftui-bug for more info 17 | struct CheckForUpdatesView: View { 18 | @ObservedObject private var checkForUpdatesViewModel: CheckForUpdatesViewModel 19 | private let updater: SPUUpdater 20 | 21 | init(updater: SPUUpdater) { 22 | self.updater = updater 23 | 24 | // Create our view model for our CheckForUpdatesView 25 | self.checkForUpdatesViewModel = CheckForUpdatesViewModel(updater: updater) 26 | } 27 | 28 | var body: some View { 29 | Button("Check for Updates…", action: updater.checkForUpdates) 30 | .disabled(!checkForUpdatesViewModel.canCheckForUpdates) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Streamline/Util/KeyboardInput.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KeyboardInput.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 11.09.22. 6 | // 7 | 8 | import Foundation 9 | -------------------------------------------------------------------------------- /Streamline/Util/ViewExtensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewExtensions.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 01.11.22. 6 | // 7 | 8 | import Foundation 9 | import SwiftUI 10 | 11 | extension View { 12 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View { 13 | background( 14 | GeometryReader { geometryProxy in 15 | Color.clear 16 | .preference(key: SizePreferenceKey.self, value: geometryProxy.size) 17 | } 18 | ) 19 | .onPreferenceChange(SizePreferenceKey.self, perform: onChange) 20 | } 21 | } 22 | 23 | private struct SizePreferenceKey: PreferenceKey { 24 | static var defaultValue: CGSize = .zero 25 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) {} 26 | } 27 | -------------------------------------------------------------------------------- /Streamline/Views/AutocompleteView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AutocompleteView.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 28.10.22. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct AutocompleteView: View { 11 | @EnvironmentObject var state: AppState 12 | @State private var commonSize = CGSize() 13 | 14 | var body: some View { 15 | GeometryReader { geometry in 16 | VStack(alignment: .leading) { 17 | ZStack(alignment: .leading) { 18 | Text(" " + state.searchStringArray.joined()) 19 | .frame(width: geometry.size.width * state.ratioRight, height: state.calculatedFontSize() * 1.5, alignment: .leading) 20 | .font(.system(size: state.calculatedFontSize())) 21 | .truncationMode(.tail) 22 | .lineLimit(1) 23 | .padding(0) 24 | .background(Color("ObsidianPurple").opacity(0.5)) 25 | }.readSize { textSize in 26 | commonSize = textSize 27 | } 28 | 29 | ForEach(state.autocompleteSearchMatches(), id: \.self) { match in 30 | Text(" " + match) 31 | .frame(width: geometry.size.width * state.ratioRight, height: state.calculatedFontSize(), alignment: .leading) 32 | .background(state.selectedAutocompleteOption == match ? Color("ObsidianPurple").opacity(0.5) : Color("ObsidianPurple").opacity(0.1)) 33 | .foregroundColor(Color("FirstWordColor")) 34 | .font(.system(size: state.calculatedFontSize() / 2)) 35 | .truncationMode(.tail) 36 | .lineLimit(1) 37 | } 38 | } 39 | } 40 | } 41 | } 42 | 43 | struct AutocompleteView_Previews: PreviewProvider { 44 | static var previews: some View { 45 | AutocompleteView() 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Streamline/Views/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 24.08.22. 6 | // 7 | 8 | import SwiftUI 9 | import SpriteKit 10 | 11 | struct ContentView: View { 12 | @EnvironmentObject var state: AppState 13 | @AppStorage("folderBookmarkData") private var folderBookmarkData: Data = Data() 14 | @AppStorage("showParticles") private var showParticles: Bool = false 15 | 16 | @StateObject var keyboardInput = KeyboardInput() 17 | @State private var monitor: Any? 18 | 19 | var body: some View { 20 | GeometryReader { geometry in 21 | KeyboardEvent(into: $keyboardInput.keyCode) 22 | .frame(width: 0, height: 0) 23 | 24 | ZStack { 25 | SpriteView(scene: state.scene, options: [.allowsTransparency]) 26 | .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity) 27 | .opacity(0.5) 28 | 29 | if(state.showSettingsPanel) { 30 | SettingsView() 31 | } else { 32 | if(state.showWelcomeScreen) { 33 | WelcomeView() 34 | } else { 35 | RageTextInputView() 36 | .offset(y: (geometry.size.height / state.ratioTop) - state.defaultFontSize) 37 | } 38 | } 39 | } 40 | } 41 | .onAppear() { 42 | self.monitor = NSEvent.addLocalMonitorForEvents(matching: .keyDown) { (aEvent) -> NSEvent? in 43 | let _ = state.handleKeyEvent(event: aEvent) 44 | 45 | if aEvent.modifierFlags.intersection(.deviceIndependentFlagsMask).contains(.command) { 46 | return aEvent 47 | } 48 | 49 | return nil 50 | } 51 | state.setupCacheFromBookmark() 52 | } 53 | .onDisappear() { 54 | NSEvent.removeMonitor(self.monitor as Any) 55 | } 56 | .readSize { size in 57 | state.dynamicWindowSize = size 58 | } 59 | } 60 | } 61 | 62 | struct ContentView_Previews: PreviewProvider { 63 | static var previews: some View { 64 | ContentView() 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /Streamline/Views/RageTextInputView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RageTextInput.swift 3 | // RageEditor 4 | // 5 | // Created by Alexis Rondeau on 24.08.22. 6 | // 7 | 8 | import SwiftUI 9 | import SwiftUIX 10 | 11 | struct RageTextInputView: View { 12 | @EnvironmentObject var state: AppState 13 | @State private var opacity = 1.0 14 | 15 | var body: some View { 16 | GeometryReader { geometry in 17 | Path() { path in 18 | path.move(to: CGPoint(x: geometry.size.width * state.ratioLeft, y: -geometry.size.height)) 19 | path.addLine(to: CGPoint(x: geometry.size.width * state.ratioLeft, y: geometry.size.height)) 20 | } 21 | .stroke(Color("LineColor"), lineWidth: 1) 22 | .opacity(0.0) 23 | 24 | Rectangle() 25 | .foregroundColor(Color("RightSide")) 26 | .frame(width: geometry.size.width * state.ratioRight, height: geometry.size.height + 100) 27 | .offset(x: geometry.size.width * state.ratioLeft, y: -geometry.size.height / 2) 28 | .opacity(0.0) 29 | 30 | HStack { 31 | Text(state.attributedString) 32 | .font(.system(size: state.calculatedFontSize())) 33 | .truncationMode(.head) 34 | .lineLimit(1) 35 | .foregroundColor(Color("TextColor")) 36 | .frame(width: geometry.size.width * state.ratioLeft, alignment: .trailing) 37 | .mask(LinearGradient(gradient: Gradient(colors: [.clear, Color("MaskColor")]), startPoint: .leading, endPoint: .trailing)) 38 | .offset(x: -8, y: -1) 39 | 40 | ZStack { 41 | Rectangle() 42 | .fill(Color("CursorColor")) 43 | .frame(width: 5, height: state.calculatedFontSize() * 1.5) 44 | .offset(x: -13) 45 | } 46 | 47 | if(state.umlautModifierTyped) { 48 | Text("¨") 49 | .font(.system(size: state.calculatedFontSize())) 50 | .foregroundColor(Color("TextColor")) 51 | .offset(x: -52, y: -(state.calculatedFontSize() / 2 + 5)) 52 | } 53 | 54 | } 55 | 56 | // Autocomplete 57 | AutocompleteView() 58 | .visible(state.currentlySearching) 59 | .offset(x: geometry.size.width * state.ratioLeft + (state.calculatedFontSize() / 2) - 15) 60 | } 61 | } 62 | } 63 | 64 | struct RageTextInput_Previews: PreviewProvider { 65 | static var previews: some View { 66 | RageTextInputView() 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Streamline/Views/WelcomeView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DemoVideoView.swift 3 | // Streamline 4 | // 5 | // Created by Alexis Rondeau on 27.11.22. 6 | // 7 | 8 | import SwiftUI 9 | import AVKit 10 | 11 | struct WelcomeView: View { 12 | @EnvironmentObject var state: AppState 13 | @Environment(\.openURL) var openURL 14 | 15 | var body: some View { 16 | VStack(alignment: .center) { 17 | Text("Hello and welcome to Streamline, let's get you started!") 18 | .font(.title) 19 | .padding() 20 | 21 | Text("Before anything else, let's have some fun! Hit your DELETE and RETURN keys a few times. Nice.") 22 | .font(.title2) 23 | .padding() 24 | 25 | Divider() 26 | .padding() 27 | 28 | HStack(alignment: .top) { 29 | VStack(alignment: .leading) { 30 | Text("Step 1") 31 | .font(.title) 32 | 33 | Text("If you're new to Streamline, fret not! Here is a quick demo video to get you started.") 34 | .font(.title3) 35 | .multilineTextAlignment(.leading) 36 | 37 | Button { 38 | openURL(URL(string: "https://getstreamline.app?wvideo=f1xos22k50")!) 39 | } label: { 40 | Text("Watch the Video") 41 | } 42 | } 43 | .padding() 44 | .frame(width: 300) 45 | 46 | VStack(alignment: .leading) { 47 | Text("Step 2") 48 | .font(.title) 49 | 50 | Text("Link at the speed of your consciousness – Set up your Obsidian vault folder for auto-complete.") 51 | .font(.title3) 52 | .multilineTextAlignment(.leading) 53 | 54 | Button { 55 | state.showSettingsPanel = true 56 | } label: { 57 | Text("Set up my vault") 58 | } 59 | } 60 | .frame(width: 300) 61 | .padding() 62 | 63 | VStack(alignment: .leading) { 64 | Text("Step 3") 65 | .font(.title) 66 | 67 | Text("You're all set up. Step three is you start practicing for a few minutes of thinking out loud.") 68 | .font(.title3) 69 | .multilineTextAlignment(.leading) 70 | 71 | Button { 72 | state.showWelcomeScreen = false 73 | } label: { 74 | Text("I'm ready.") 75 | } 76 | } 77 | .frame(width: 300) 78 | .padding() 79 | 80 | } 81 | 82 | Divider() 83 | .padding() 84 | 85 | } 86 | } 87 | } 88 | 89 | struct DemoVideoView_Previews: PreviewProvider { 90 | static var previews: some View { 91 | WelcomeView() 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /ship.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | 3 | # abort on errors 4 | set -e 5 | 6 | # build 7 | # npm run build 8 | 9 | echo -n "My commit message: " 10 | read MESSAGE 11 | 12 | echo $MESSAGE 13 | 14 | git add -A 15 | git commit -m $MESSAGE 16 | git push origin main 17 | --------------------------------------------------------------------------------