├── .gitignore ├── Gemfile ├── Gemfile.lock ├── LICENSE.md ├── Podfile ├── Podfile.lock ├── README.md ├── SlackStack.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── SlackStack.xcworkspace └── contents.xcworkspacedata ├── Slackdeck ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── 128x128.png │ │ ├── 16x16.png │ │ ├── 256x256-1.png │ │ ├── 256x256.png │ │ ├── 32x32-1.png │ │ ├── 32x32.png │ │ ├── 512x512-1.png │ │ ├── 512x512.png │ │ ├── 64x64.png │ │ ├── Contents.json │ │ └── icon-name.png │ └── Contents.json ├── Info.plist ├── Main.xib ├── Preferences.swift ├── SlackChannelView.swift ├── ViewController.swift └── styles.css ├── docs └── screenshot.png └── fastlane └── Gymfile /.gitignore: -------------------------------------------------------------------------------- 1 | Pods 2 | 3 | ### https://raw.github.com/github/gitignore/785fcb765a09e0800b9133e64a79fe60c6a205ab/Global/xcode.gitignore 4 | 5 | # Xcode 6 | # 7 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 8 | 9 | ## Build generated 10 | build/ 11 | DerivedData/ 12 | 13 | ## Various settings 14 | *.pbxuser 15 | !default.pbxuser 16 | *.mode1v3 17 | !default.mode1v3 18 | *.mode2v3 19 | !default.mode2v3 20 | *.perspectivev3 21 | !default.perspectivev3 22 | xcuserdata/ 23 | 24 | ## Other 25 | *.moved-aside 26 | *.xccheckout 27 | *.xcscmblueprint 28 | 29 | 30 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | source 'https://rubygems.org' 3 | 4 | gem 'cocoapods' 5 | gem 'gym' 6 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | CFPropertyList (2.3.5) 5 | activesupport (4.2.8) 6 | i18n (~> 0.7) 7 | minitest (~> 5.1) 8 | thread_safe (~> 0.3, >= 0.3.4) 9 | tzinfo (~> 1.1) 10 | addressable (2.5.1) 11 | public_suffix (~> 2.0, >= 2.0.2) 12 | babosa (1.0.2) 13 | claide (1.0.1) 14 | cocoapods (1.2.1) 15 | activesupport (>= 4.0.2, < 5) 16 | claide (>= 1.0.1, < 2.0) 17 | cocoapods-core (= 1.2.1) 18 | cocoapods-deintegrate (>= 1.0.1, < 2.0) 19 | cocoapods-downloader (>= 1.1.3, < 2.0) 20 | cocoapods-plugins (>= 1.0.0, < 2.0) 21 | cocoapods-search (>= 1.0.0, < 2.0) 22 | cocoapods-stats (>= 1.0.0, < 2.0) 23 | cocoapods-trunk (>= 1.2.0, < 2.0) 24 | cocoapods-try (>= 1.1.0, < 2.0) 25 | colored2 (~> 3.1) 26 | escape (~> 0.0.4) 27 | fourflusher (~> 2.0.1) 28 | gh_inspector (~> 1.0) 29 | molinillo (~> 0.5.7) 30 | nap (~> 1.0) 31 | ruby-macho (~> 1.1) 32 | xcodeproj (>= 1.4.4, < 2.0) 33 | cocoapods-core (1.2.1) 34 | activesupport (>= 4.0.2, < 5) 35 | fuzzy_match (~> 2.0.4) 36 | nap (~> 1.0) 37 | cocoapods-deintegrate (1.0.1) 38 | cocoapods-downloader (1.1.3) 39 | cocoapods-plugins (1.0.0) 40 | nap 41 | cocoapods-search (1.0.0) 42 | cocoapods-stats (1.0.0) 43 | cocoapods-trunk (1.2.0) 44 | nap (>= 0.8, < 2.0) 45 | netrc (= 0.7.8) 46 | cocoapods-try (1.1.0) 47 | colored (1.2) 48 | colored2 (3.1.2) 49 | commander-fastlane (4.4.4) 50 | highline (~> 1.7.2) 51 | domain_name (0.5.20170404) 52 | unf (>= 0.0.5, < 1.0.0) 53 | dotenv (2.2.1) 54 | escape (0.0.4) 55 | excon (0.55.0) 56 | faraday (0.12.1) 57 | multipart-post (>= 1.2, < 3) 58 | faraday-cookie_jar (0.0.6) 59 | faraday (>= 0.7.4) 60 | http-cookie (~> 1.0.0) 61 | faraday_middleware (0.11.0.1) 62 | faraday (>= 0.7.4, < 1.0) 63 | fastimage (2.1.0) 64 | fastlane (2.28.7) 65 | CFPropertyList (>= 2.3, < 3.0.0) 66 | addressable (>= 2.3, < 3.0.0) 67 | babosa (>= 1.0.2, < 2.0.0) 68 | bundler (>= 1.12.0, < 2.0.0) 69 | colored 70 | commander-fastlane (>= 4.4.0, < 5.0.0) 71 | dotenv (>= 2.1.1, < 3.0.0) 72 | excon (>= 0.45.0, < 1.0.0) 73 | faraday (~> 0.9) 74 | faraday-cookie_jar (~> 0.0.6) 75 | faraday_middleware (~> 0.9) 76 | fastimage (>= 1.6) 77 | gh_inspector (>= 1.0.1, < 2.0.0) 78 | google-api-client (~> 0.9.2) 79 | highline (>= 1.7.2, < 2.0.0) 80 | json (< 3.0.0) 81 | mini_magick (~> 4.5.1) 82 | multi_json 83 | multi_xml (~> 0.5) 84 | multipart-post (~> 2.0.0) 85 | plist (>= 3.1.0, < 4.0.0) 86 | rubyzip (>= 1.1.0, < 2.0.0) 87 | security (= 0.1.3) 88 | slack-notifier (>= 1.3, < 2.0.0) 89 | terminal-notifier (>= 1.6.2, < 2.0.0) 90 | terminal-table (>= 1.4.5, < 2.0.0) 91 | tty-screen (~> 0.5.0) 92 | word_wrap (~> 1.0.0) 93 | xcodeproj (>= 1.4.4, < 2.0.0) 94 | xcpretty (>= 0.2.4, < 1.0.0) 95 | xcpretty-travis-formatter (>= 0.0.3) 96 | fourflusher (2.0.1) 97 | fuzzy_match (2.0.4) 98 | gh_inspector (1.0.3) 99 | google-api-client (0.9.28) 100 | addressable (~> 2.3) 101 | googleauth (~> 0.5) 102 | httpclient (~> 2.7) 103 | hurley (~> 0.1) 104 | memoist (~> 0.11) 105 | mime-types (>= 1.6) 106 | representable (~> 2.3.0) 107 | retriable (~> 2.0) 108 | googleauth (0.5.1) 109 | faraday (~> 0.9) 110 | jwt (~> 1.4) 111 | logging (~> 2.0) 112 | memoist (~> 0.12) 113 | multi_json (~> 1.11) 114 | os (~> 0.9) 115 | signet (~> 0.7) 116 | gym (2.0.0) 117 | colored 118 | fastlane (>= 2.0.0, < 3.0.0) 119 | plist (>= 3.1.0, < 4.0.0) 120 | rubyzip (>= 1.1.7) 121 | terminal-table (>= 1.4.5, < 2.0.0) 122 | xcpretty (>= 0.2.4, < 1.0.0) 123 | highline (1.7.8) 124 | http-cookie (1.0.3) 125 | domain_name (~> 0.5) 126 | httpclient (2.8.3) 127 | hurley (0.2) 128 | i18n (0.8.1) 129 | json (2.1.0) 130 | jwt (1.5.6) 131 | little-plugger (1.1.4) 132 | logging (2.2.2) 133 | little-plugger (~> 1.1) 134 | multi_json (~> 1.10) 135 | memoist (0.15.0) 136 | mime-types (3.1) 137 | mime-types-data (~> 3.2015) 138 | mime-types-data (3.2016.0521) 139 | mini_magick (4.5.1) 140 | minitest (5.10.1) 141 | molinillo (0.5.7) 142 | multi_json (1.12.1) 143 | multi_xml (0.6.0) 144 | multipart-post (2.0.0) 145 | nanaimo (0.2.3) 146 | nap (1.1.0) 147 | netrc (0.7.8) 148 | os (0.9.6) 149 | plist (3.3.0) 150 | public_suffix (2.0.5) 151 | representable (2.3.0) 152 | uber (~> 0.0.7) 153 | retriable (2.1.0) 154 | rouge (2.0.7) 155 | ruby-macho (1.1.0) 156 | rubyzip (1.2.1) 157 | security (0.1.3) 158 | signet (0.7.3) 159 | addressable (~> 2.3) 160 | faraday (~> 0.9) 161 | jwt (~> 1.5) 162 | multi_json (~> 1.10) 163 | slack-notifier (1.5.1) 164 | terminal-notifier (1.7.1) 165 | terminal-table (1.7.3) 166 | unicode-display_width (~> 1.1.1) 167 | thread_safe (0.3.6) 168 | tty-screen (0.5.0) 169 | tzinfo (1.2.3) 170 | thread_safe (~> 0.1) 171 | uber (0.0.15) 172 | unf (0.1.4) 173 | unf_ext 174 | unf_ext (0.0.7.4) 175 | unicode-display_width (1.1.3) 176 | word_wrap (1.0.0) 177 | xcodeproj (1.4.4) 178 | CFPropertyList (~> 2.3.3) 179 | claide (>= 1.0.1, < 2.0) 180 | colored2 (~> 3.1) 181 | nanaimo (~> 0.2.3) 182 | xcpretty (0.2.7) 183 | rouge (~> 2.0.7) 184 | xcpretty-travis-formatter (0.0.4) 185 | xcpretty (~> 0.2, >= 0.0.7) 186 | 187 | PLATFORMS 188 | ruby 189 | 190 | DEPENDENCIES 191 | cocoapods 192 | gym 193 | 194 | BUNDLED WITH 195 | 1.14.6 196 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 MIZUNO Hiroki 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | platform :osx, '10.12' 3 | 4 | target 'SlackStack' do 5 | use_frameworks! 6 | 7 | pod 'NorthLayout' 8 | pod '※ikemen' 9 | end 10 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - NorthLayout (3.0.0) 3 | - "※ikemen (0.2.0)" 4 | 5 | DEPENDENCIES: 6 | - NorthLayout 7 | - "※ikemen" 8 | 9 | SPEC CHECKSUMS: 10 | NorthLayout: 28db8bfa49b861b4e972cc8e7c683c8ba819ff88 11 | "※ikemen": c04aecee4293a2b6deb2119f7e67e7a82c6dea06 12 | 13 | PODFILE CHECKSUM: 0a4bbf51a5deb7d74bc066516667ded1e98b9ec8 14 | 15 | COCOAPODS: 1.2.1 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # :books: Slack + Stack = Win 2 | Slack☆Stack is multi-column/multi-row slack client to overview many channels at a glance. 3 | 4 | ![](https://raw.githubusercontent.com/mzp/SlackStack/master/docs/screenshot.png) 5 | 6 | ## :star: Usage 7 | 8 | 1. Go to the [releases page](https://github.com/mzp/SlackStack/releases), find the version you want. 9 | 2. Download the file. 10 | 3. Create row at "SlackStack" -> "Add row" from menu item. 11 | 4. Login your slack team. 12 | 5. Switch channel by `Cmd` + `k`. 13 | 6. Create row/column as you like. 14 | 15 | ## :wrench: build 16 | 17 | ```sh 18 | bundle install 19 | bundle exec pod install 20 | bundle exec gym 21 | ``` 22 | 23 | ## :pray: Acknowleadge 24 | Icons made by [Freepik](http://www.freepik.com) from [www.flaticon.com](http://www.flaticon.com) is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/). 25 | 26 | ## :copyright: LICENSE 27 | MIT 28 | 29 | ## :+1: Commit symbol 30 | 31 | |emoji |mean | 32 | |-------------------|-----------------------------------------| 33 | |:wrench: |improve development environment | 34 | |:lock_with_ink_pen:|improve code signing environment | 35 | |:honey_pot: |improve [CocoaPods](https://cocoapods.org) environment| 36 | |:airplane: |improve [Fastlane](https://fastlane.tools) environment| 37 | |:gem: |improve [RubyGems](https://rubygems.org) environment | 38 | |:triangular_ruler: |improve view layout | 39 | |:pencil2: |improve by interface builder | 40 | |:lipstick: |improve the format/structure of the code | 41 | |:file_folder: |improve storage/preferences | 42 | |:art: |improve design | 43 | |:globe_with_meridians:|improve webview | 44 | |:memo: |improve document | 45 | -------------------------------------------------------------------------------- /SlackStack.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1343D78B1EB44D6600D47CF3 /* Main.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1343D78A1EB44D6600D47CF3 /* Main.xib */; }; 11 | 1343D7911EB4691300D47CF3 /* SlackChannelView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1343D7901EB4691300D47CF3 /* SlackChannelView.swift */; }; 12 | 1343D7931EB49FBA00D47CF3 /* styles.css in Resources */ = {isa = PBXBuildFile; fileRef = 1343D7921EB49FBA00D47CF3 /* styles.css */; }; 13 | 1343D7971EB4AE5100D47CF3 /* Preferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1343D7961EB4AE5100D47CF3 /* Preferences.swift */; }; 14 | 13DBDA741EB436F000C33E0C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13DBDA731EB436F000C33E0C /* AppDelegate.swift */; }; 15 | 13DBDA761EB436F000C33E0C /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13DBDA751EB436F000C33E0C /* ViewController.swift */; }; 16 | 13DBDA781EB436F000C33E0C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13DBDA771EB436F000C33E0C /* Assets.xcassets */; }; 17 | AB2E3AEEB657C2C8EFFD9D14 /* Pods_SlackStack.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2153AFB219D717C7F8AE46ED /* Pods_SlackStack.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | 1343D78A1EB44D6600D47CF3 /* Main.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = Main.xib; sourceTree = ""; }; 22 | 1343D7901EB4691300D47CF3 /* SlackChannelView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SlackChannelView.swift; sourceTree = ""; }; 23 | 1343D7921EB49FBA00D47CF3 /* styles.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = styles.css; sourceTree = ""; }; 24 | 1343D7961EB4AE5100D47CF3 /* Preferences.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Preferences.swift; sourceTree = ""; }; 25 | 13DBDA701EB436F000C33E0C /* SlackStack.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SlackStack.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | 13DBDA731EB436F000C33E0C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 27 | 13DBDA751EB436F000C33E0C /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 28 | 13DBDA771EB436F000C33E0C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 29 | 13DBDA7C1EB436F000C33E0C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | 14E6B50080F00AA5F05D14A3 /* Pods-SlackStack.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SlackStack.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SlackStack/Pods-SlackStack.debug.xcconfig"; sourceTree = ""; }; 31 | 2153AFB219D717C7F8AE46ED /* Pods_SlackStack.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SlackStack.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | DB60CB9A35551C0A4CFC847A /* Pods-SlackStack.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SlackStack.release.xcconfig"; path = "Pods/Target Support Files/Pods-SlackStack/Pods-SlackStack.release.xcconfig"; sourceTree = ""; }; 33 | /* End PBXFileReference section */ 34 | 35 | /* Begin PBXFrameworksBuildPhase section */ 36 | 13DBDA6D1EB436F000C33E0C /* Frameworks */ = { 37 | isa = PBXFrameworksBuildPhase; 38 | buildActionMask = 2147483647; 39 | files = ( 40 | AB2E3AEEB657C2C8EFFD9D14 /* Pods_SlackStack.framework in Frameworks */, 41 | ); 42 | runOnlyForDeploymentPostprocessing = 0; 43 | }; 44 | /* End PBXFrameworksBuildPhase section */ 45 | 46 | /* Begin PBXGroup section */ 47 | 13DBDA671EB436F000C33E0C = { 48 | isa = PBXGroup; 49 | children = ( 50 | 13DBDA721EB436F000C33E0C /* Slackdeck */, 51 | 13DBDA711EB436F000C33E0C /* Products */, 52 | C1686F0F65A113E216164A10 /* Pods */, 53 | 1F51BEA4C6AFD39BF13F3E09 /* Frameworks */, 54 | ); 55 | sourceTree = ""; 56 | }; 57 | 13DBDA711EB436F000C33E0C /* Products */ = { 58 | isa = PBXGroup; 59 | children = ( 60 | 13DBDA701EB436F000C33E0C /* SlackStack.app */, 61 | ); 62 | name = Products; 63 | sourceTree = ""; 64 | }; 65 | 13DBDA721EB436F000C33E0C /* Slackdeck */ = { 66 | isa = PBXGroup; 67 | children = ( 68 | 13DBDA731EB436F000C33E0C /* AppDelegate.swift */, 69 | 13DBDA751EB436F000C33E0C /* ViewController.swift */, 70 | 1343D7961EB4AE5100D47CF3 /* Preferences.swift */, 71 | 1343D7901EB4691300D47CF3 /* SlackChannelView.swift */, 72 | 13DBDA771EB436F000C33E0C /* Assets.xcassets */, 73 | 13DBDA7C1EB436F000C33E0C /* Info.plist */, 74 | 1343D78A1EB44D6600D47CF3 /* Main.xib */, 75 | 1343D7921EB49FBA00D47CF3 /* styles.css */, 76 | ); 77 | path = Slackdeck; 78 | sourceTree = ""; 79 | }; 80 | 1F51BEA4C6AFD39BF13F3E09 /* Frameworks */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 2153AFB219D717C7F8AE46ED /* Pods_SlackStack.framework */, 84 | ); 85 | name = Frameworks; 86 | sourceTree = ""; 87 | }; 88 | C1686F0F65A113E216164A10 /* Pods */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 14E6B50080F00AA5F05D14A3 /* Pods-SlackStack.debug.xcconfig */, 92 | DB60CB9A35551C0A4CFC847A /* Pods-SlackStack.release.xcconfig */, 93 | ); 94 | name = Pods; 95 | sourceTree = ""; 96 | }; 97 | /* End PBXGroup section */ 98 | 99 | /* Begin PBXNativeTarget section */ 100 | 13DBDA6F1EB436F000C33E0C /* SlackStack */ = { 101 | isa = PBXNativeTarget; 102 | buildConfigurationList = 13DBDA7F1EB436F000C33E0C /* Build configuration list for PBXNativeTarget "SlackStack" */; 103 | buildPhases = ( 104 | 0DD6CB48D493E0D3AE13AD00 /* [CP] Check Pods Manifest.lock */, 105 | 13DBDA6C1EB436F000C33E0C /* Sources */, 106 | 13DBDA6D1EB436F000C33E0C /* Frameworks */, 107 | 13DBDA6E1EB436F000C33E0C /* Resources */, 108 | 9F033D89B4563C8622122485 /* [CP] Embed Pods Frameworks */, 109 | C5D5E69B2E94E68021A86751 /* [CP] Copy Pods Resources */, 110 | ); 111 | buildRules = ( 112 | ); 113 | dependencies = ( 114 | ); 115 | name = SlackStack; 116 | productName = Slackdeck; 117 | productReference = 13DBDA701EB436F000C33E0C /* SlackStack.app */; 118 | productType = "com.apple.product-type.application"; 119 | }; 120 | /* End PBXNativeTarget section */ 121 | 122 | /* Begin PBXProject section */ 123 | 13DBDA681EB436F000C33E0C /* Project object */ = { 124 | isa = PBXProject; 125 | attributes = { 126 | LastSwiftUpdateCheck = 0830; 127 | LastUpgradeCheck = 0830; 128 | ORGANIZATIONNAME = mzp; 129 | TargetAttributes = { 130 | 13DBDA6F1EB436F000C33E0C = { 131 | CreatedOnToolsVersion = 8.3.2; 132 | DevelopmentTeam = VG2YYSKSHY; 133 | ProvisioningStyle = Manual; 134 | }; 135 | }; 136 | }; 137 | buildConfigurationList = 13DBDA6B1EB436F000C33E0C /* Build configuration list for PBXProject "SlackStack" */; 138 | compatibilityVersion = "Xcode 3.2"; 139 | developmentRegion = English; 140 | hasScannedForEncodings = 0; 141 | knownRegions = ( 142 | en, 143 | Base, 144 | ); 145 | mainGroup = 13DBDA671EB436F000C33E0C; 146 | productRefGroup = 13DBDA711EB436F000C33E0C /* Products */; 147 | projectDirPath = ""; 148 | projectRoot = ""; 149 | targets = ( 150 | 13DBDA6F1EB436F000C33E0C /* SlackStack */, 151 | ); 152 | }; 153 | /* End PBXProject section */ 154 | 155 | /* Begin PBXResourcesBuildPhase section */ 156 | 13DBDA6E1EB436F000C33E0C /* Resources */ = { 157 | isa = PBXResourcesBuildPhase; 158 | buildActionMask = 2147483647; 159 | files = ( 160 | 1343D7931EB49FBA00D47CF3 /* styles.css in Resources */, 161 | 1343D78B1EB44D6600D47CF3 /* Main.xib in Resources */, 162 | 13DBDA781EB436F000C33E0C /* Assets.xcassets in Resources */, 163 | ); 164 | runOnlyForDeploymentPostprocessing = 0; 165 | }; 166 | /* End PBXResourcesBuildPhase section */ 167 | 168 | /* Begin PBXShellScriptBuildPhase section */ 169 | 0DD6CB48D493E0D3AE13AD00 /* [CP] Check Pods Manifest.lock */ = { 170 | isa = PBXShellScriptBuildPhase; 171 | buildActionMask = 2147483647; 172 | files = ( 173 | ); 174 | inputPaths = ( 175 | ); 176 | name = "[CP] Check Pods Manifest.lock"; 177 | outputPaths = ( 178 | ); 179 | runOnlyForDeploymentPostprocessing = 0; 180 | shellPath = /bin/sh; 181 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 182 | showEnvVarsInLog = 0; 183 | }; 184 | 9F033D89B4563C8622122485 /* [CP] Embed Pods Frameworks */ = { 185 | isa = PBXShellScriptBuildPhase; 186 | buildActionMask = 2147483647; 187 | files = ( 188 | ); 189 | inputPaths = ( 190 | ); 191 | name = "[CP] Embed Pods Frameworks"; 192 | outputPaths = ( 193 | ); 194 | runOnlyForDeploymentPostprocessing = 0; 195 | shellPath = /bin/sh; 196 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SlackStack/Pods-SlackStack-frameworks.sh\"\n"; 197 | showEnvVarsInLog = 0; 198 | }; 199 | C5D5E69B2E94E68021A86751 /* [CP] Copy Pods Resources */ = { 200 | isa = PBXShellScriptBuildPhase; 201 | buildActionMask = 2147483647; 202 | files = ( 203 | ); 204 | inputPaths = ( 205 | ); 206 | name = "[CP] Copy Pods Resources"; 207 | outputPaths = ( 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | shellPath = /bin/sh; 211 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SlackStack/Pods-SlackStack-resources.sh\"\n"; 212 | showEnvVarsInLog = 0; 213 | }; 214 | /* End PBXShellScriptBuildPhase section */ 215 | 216 | /* Begin PBXSourcesBuildPhase section */ 217 | 13DBDA6C1EB436F000C33E0C /* Sources */ = { 218 | isa = PBXSourcesBuildPhase; 219 | buildActionMask = 2147483647; 220 | files = ( 221 | 1343D7911EB4691300D47CF3 /* SlackChannelView.swift in Sources */, 222 | 13DBDA761EB436F000C33E0C /* ViewController.swift in Sources */, 223 | 1343D7971EB4AE5100D47CF3 /* Preferences.swift in Sources */, 224 | 13DBDA741EB436F000C33E0C /* AppDelegate.swift in Sources */, 225 | ); 226 | runOnlyForDeploymentPostprocessing = 0; 227 | }; 228 | /* End PBXSourcesBuildPhase section */ 229 | 230 | /* Begin XCBuildConfiguration section */ 231 | 13DBDA7D1EB436F000C33E0C /* Debug */ = { 232 | isa = XCBuildConfiguration; 233 | buildSettings = { 234 | ALWAYS_SEARCH_USER_PATHS = NO; 235 | CLANG_ANALYZER_NONNULL = YES; 236 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 237 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 238 | CLANG_CXX_LIBRARY = "libc++"; 239 | CLANG_ENABLE_MODULES = YES; 240 | CLANG_ENABLE_OBJC_ARC = YES; 241 | CLANG_WARN_BOOL_CONVERSION = YES; 242 | CLANG_WARN_CONSTANT_CONVERSION = YES; 243 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 244 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 245 | CLANG_WARN_EMPTY_BODY = YES; 246 | CLANG_WARN_ENUM_CONVERSION = YES; 247 | CLANG_WARN_INFINITE_RECURSION = YES; 248 | CLANG_WARN_INT_CONVERSION = YES; 249 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 250 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 251 | CLANG_WARN_UNREACHABLE_CODE = YES; 252 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 253 | CODE_SIGN_IDENTITY = "-"; 254 | COPY_PHASE_STRIP = NO; 255 | DEBUG_INFORMATION_FORMAT = dwarf; 256 | ENABLE_STRICT_OBJC_MSGSEND = YES; 257 | ENABLE_TESTABILITY = YES; 258 | GCC_C_LANGUAGE_STANDARD = gnu99; 259 | GCC_DYNAMIC_NO_PIC = NO; 260 | GCC_NO_COMMON_BLOCKS = YES; 261 | GCC_OPTIMIZATION_LEVEL = 0; 262 | GCC_PREPROCESSOR_DEFINITIONS = ( 263 | "DEBUG=1", 264 | "$(inherited)", 265 | ); 266 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 267 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 268 | GCC_WARN_UNDECLARED_SELECTOR = YES; 269 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 270 | GCC_WARN_UNUSED_FUNCTION = YES; 271 | GCC_WARN_UNUSED_VARIABLE = YES; 272 | MACOSX_DEPLOYMENT_TARGET = 10.12; 273 | MTL_ENABLE_DEBUG_INFO = YES; 274 | ONLY_ACTIVE_ARCH = YES; 275 | SDKROOT = macosx; 276 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 277 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 278 | }; 279 | name = Debug; 280 | }; 281 | 13DBDA7E1EB436F000C33E0C /* Release */ = { 282 | isa = XCBuildConfiguration; 283 | buildSettings = { 284 | ALWAYS_SEARCH_USER_PATHS = NO; 285 | CLANG_ANALYZER_NONNULL = YES; 286 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 287 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 288 | CLANG_CXX_LIBRARY = "libc++"; 289 | CLANG_ENABLE_MODULES = YES; 290 | CLANG_ENABLE_OBJC_ARC = YES; 291 | CLANG_WARN_BOOL_CONVERSION = YES; 292 | CLANG_WARN_CONSTANT_CONVERSION = YES; 293 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 294 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 295 | CLANG_WARN_EMPTY_BODY = YES; 296 | CLANG_WARN_ENUM_CONVERSION = YES; 297 | CLANG_WARN_INFINITE_RECURSION = YES; 298 | CLANG_WARN_INT_CONVERSION = YES; 299 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 300 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 301 | CLANG_WARN_UNREACHABLE_CODE = YES; 302 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 303 | CODE_SIGN_IDENTITY = "-"; 304 | COPY_PHASE_STRIP = NO; 305 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 306 | ENABLE_NS_ASSERTIONS = NO; 307 | ENABLE_STRICT_OBJC_MSGSEND = YES; 308 | GCC_C_LANGUAGE_STANDARD = gnu99; 309 | GCC_NO_COMMON_BLOCKS = YES; 310 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 311 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 312 | GCC_WARN_UNDECLARED_SELECTOR = YES; 313 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 314 | GCC_WARN_UNUSED_FUNCTION = YES; 315 | GCC_WARN_UNUSED_VARIABLE = YES; 316 | MACOSX_DEPLOYMENT_TARGET = 10.12; 317 | MTL_ENABLE_DEBUG_INFO = NO; 318 | SDKROOT = macosx; 319 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 320 | }; 321 | name = Release; 322 | }; 323 | 13DBDA801EB436F000C33E0C /* Debug */ = { 324 | isa = XCBuildConfiguration; 325 | baseConfigurationReference = 14E6B50080F00AA5F05D14A3 /* Pods-SlackStack.debug.xcconfig */; 326 | buildSettings = { 327 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 328 | CODE_SIGN_IDENTITY = "Developer ID Application"; 329 | COMBINE_HIDPI_IMAGES = YES; 330 | DEVELOPMENT_TEAM = VG2YYSKSHY; 331 | INFOPLIST_FILE = Slackdeck/Info.plist; 332 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 333 | PRODUCT_BUNDLE_IDENTIFIER = jp.mzp.Slackdeck; 334 | PRODUCT_NAME = "$(TARGET_NAME)"; 335 | PROVISIONING_PROFILE_SPECIFIER = ""; 336 | SWIFT_VERSION = 3.0; 337 | }; 338 | name = Debug; 339 | }; 340 | 13DBDA811EB436F000C33E0C /* Release */ = { 341 | isa = XCBuildConfiguration; 342 | baseConfigurationReference = DB60CB9A35551C0A4CFC847A /* Pods-SlackStack.release.xcconfig */; 343 | buildSettings = { 344 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 345 | CODE_SIGN_IDENTITY = "Developer ID Application"; 346 | COMBINE_HIDPI_IMAGES = YES; 347 | DEVELOPMENT_TEAM = VG2YYSKSHY; 348 | INFOPLIST_FILE = Slackdeck/Info.plist; 349 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 350 | PRODUCT_BUNDLE_IDENTIFIER = jp.mzp.Slackdeck; 351 | PRODUCT_NAME = "$(TARGET_NAME)"; 352 | PROVISIONING_PROFILE_SPECIFIER = ""; 353 | SWIFT_VERSION = 3.0; 354 | }; 355 | name = Release; 356 | }; 357 | /* End XCBuildConfiguration section */ 358 | 359 | /* Begin XCConfigurationList section */ 360 | 13DBDA6B1EB436F000C33E0C /* Build configuration list for PBXProject "SlackStack" */ = { 361 | isa = XCConfigurationList; 362 | buildConfigurations = ( 363 | 13DBDA7D1EB436F000C33E0C /* Debug */, 364 | 13DBDA7E1EB436F000C33E0C /* Release */, 365 | ); 366 | defaultConfigurationIsVisible = 0; 367 | defaultConfigurationName = Release; 368 | }; 369 | 13DBDA7F1EB436F000C33E0C /* Build configuration list for PBXNativeTarget "SlackStack" */ = { 370 | isa = XCConfigurationList; 371 | buildConfigurations = ( 372 | 13DBDA801EB436F000C33E0C /* Debug */, 373 | 13DBDA811EB436F000C33E0C /* Release */, 374 | ); 375 | defaultConfigurationIsVisible = 0; 376 | defaultConfigurationName = Release; 377 | }; 378 | /* End XCConfigurationList section */ 379 | }; 380 | rootObject = 13DBDA681EB436F000C33E0C /* Project object */; 381 | } 382 | -------------------------------------------------------------------------------- /SlackStack.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SlackStack.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Slackdeck/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Slackdeck 4 | // 5 | // Created by mzp on 2017/04/29. 6 | // Copyright © 2017 mzp. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | @NSApplicationMain 12 | class AppDelegate: NSObject, NSApplicationDelegate { 13 | @IBOutlet weak var window : NSWindow! 14 | private var rootViewController : ViewController { 15 | get{ 16 | return window.contentViewController as! ViewController 17 | } 18 | } 19 | 20 | 21 | func applicationDidFinishLaunching(_ aNotification: Notification) { 22 | window.title = "Slack☆Stack" 23 | window.contentViewController = ViewController(nibName: nil, bundle: nil) 24 | } 25 | 26 | func applicationWillTerminate(_ aNotification: Notification) { 27 | // Insert code here to tear down your application 28 | } 29 | 30 | // MARK: - channel 31 | @IBAction func addChannel(_ sender: Any) { 32 | rootViewController.addChannel(responder: window.firstResponder) 33 | } 34 | 35 | @IBAction func removeChannel(_ sender: Any) { 36 | rootViewController.removeChannel(responder: window.firstResponder) 37 | } 38 | 39 | // MARK: - row 40 | @IBAction func addRow(_ sender: Any) { 41 | rootViewController.addRow() 42 | } 43 | 44 | @IBAction func removeRow(_ sender: Any) { 45 | rootViewController.removeRow(responder: window.firstResponder) 46 | } 47 | 48 | // MARK: - history 49 | @IBAction func back(_ sender: Any) { 50 | rootViewController.back(responder: window.firstResponder) 51 | } 52 | 53 | @IBAction func forward(_ sender: Any) { 54 | rootViewController.forward(responder: window.firstResponder) 55 | } 56 | 57 | // MARK: - session 58 | @IBAction func logout(_ sender: Any) { 59 | } 60 | } 61 | 62 | -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/128x128.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/16x16.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/256x256-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/256x256-1.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/256x256.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/32x32-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/32x32-1.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/32x32.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/512x512-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/512x512-1.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/512x512.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/64x64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/64x64.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "16x16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "32x32-1.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "32x32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "64x64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "128x128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "256x256-1.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "256x256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "512x512-1.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "512x512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "icon-name.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/AppIcon.appiconset/icon-name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/Slackdeck/Assets.xcassets/AppIcon.appiconset/icon-name.png -------------------------------------------------------------------------------- /Slackdeck/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Slackdeck/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0.1 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | Copyright © 2017 mzp. All rights reserved. 27 | NSMainNibFile 28 | Main 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /Slackdeck/Main.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | -------------------------------------------------------------------------------- /Slackdeck/Preferences.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Preferences.swift 3 | // Slackdeck 4 | // 5 | // Created by mzp on 2017/04/29. 6 | // Copyright © 2017 mzp. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | fileprivate let defaults = UserDefaults.standard 12 | fileprivate let kUrls = "urls" 13 | 14 | struct Preferences { 15 | private static func save(object: AnyObject?, forKey key: String) { 16 | defaults.set(object, forKey: key) 17 | defaults.synchronize() 18 | } 19 | 20 | static var urls: [[String]] { 21 | get { return (defaults.array(forKey: kUrls) as? [[String]]) ?? [] } 22 | set { save(object: newValue as AnyObject, forKey: kUrls) } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Slackdeck/SlackChannelView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SlackChannelView.swift 3 | // Slackdeck 4 | // 5 | // Created by mzp on 2017/04/29. 6 | // Copyright © 2017 mzp. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | import WebKit 11 | 12 | class SlackChannelView: WKWebView, WKNavigationDelegate, WKUIDelegate { 13 | init(configuration : WKWebViewConfiguration) { 14 | super.init(frame: .zero, configuration: configuration) 15 | self.navigationDelegate = self 16 | self.uiDelegate = self 17 | self.customUserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4" 18 | } 19 | 20 | required init?(coder: NSCoder) { 21 | fatalError("init(coder:) has not been implemented") 22 | } 23 | 24 | func loadURL(url : String) { 25 | if let url = URL(string: url) { 26 | let request = URLRequest(url: url) 27 | self.load(request) 28 | } 29 | } 30 | 31 | func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { 32 | insertContentsOfCSSFile(into: webView) 33 | } 34 | 35 | func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? { 36 | guard let url = navigationAction.request.url else { 37 | return nil 38 | } 39 | guard let targetFrame = navigationAction.targetFrame, targetFrame.isMainFrame else { 40 | if isSlackTeam(url: url.absoluteString) { 41 | self.loadURL(url: url.absoluteString) 42 | } else { 43 | NSWorkspace.shared().open(url) 44 | } 45 | return nil 46 | } 47 | return nil 48 | } 49 | 50 | private func insertContentsOfCSSFile(into webView: WKWebView) { 51 | guard let path = Bundle.main.path(forResource: "styles", ofType: "css") else { 52 | return 53 | } 54 | guard let cssString = try? String(contentsOfFile: path).replacingOccurrences(of: "\n", with: "") else { 55 | return 56 | } 57 | evaluateJavaScript("var style = document.createElement('style'); style.innerHTML = '\(cssString)'; document.head.appendChild(style); null") 58 | evaluateJavaScript("window.__style__ = document.createElement('style'); document.head.appendChild(__style__); null") 59 | } 60 | 61 | private func isSlackTeam(url : String) -> Bool { 62 | let range = url.range(of: "^https://.*\\.slack\\.com/$", options: .regularExpression) 63 | return range != nil 64 | } 65 | 66 | override func becomeFirstResponder() -> Bool { 67 | evaluateJavaScript("__style__.innerHTML = '.ql-editor { }'; null") 68 | return super.becomeFirstResponder() 69 | } 70 | 71 | override func resignFirstResponder() -> Bool { 72 | evaluateJavaScript("__style__.innerHTML = '.ql-editor { background-color: #efefef }'; null") 73 | return super.becomeFirstResponder() 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Slackdeck/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Slackdeck 4 | // 5 | // Created by mzp on 2017/04/29. 6 | // Copyright © 2017 mzp. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | import WebKit 11 | import NorthLayout 12 | import Ikemen 13 | 14 | fileprivate let kSlackURL = "https://slack.com/" 15 | fileprivate let configuration = WKWebViewConfiguration() 16 | 17 | class ViewController: NSViewController { 18 | private var channels : [[SlackChannelView]] = [] 19 | private let stackView = NSStackView() ※ { sv in 20 | sv.spacing = 0.0 21 | sv.distribution = .fillEqually 22 | sv.orientation = .vertical 23 | } 24 | 25 | override func loadView() { 26 | if let frame = NSScreen.main()?.frame { 27 | self.view = NSView(frame: NSMakeRect(0, 0, frame.width * 0.8, frame.height * 0.8)) 28 | } 29 | } 30 | 31 | override func viewDidLoad() { 32 | super.viewDidLoad() 33 | 34 | channels = Preferences.urls.map { row in 35 | row.flatMap { url in 36 | SlackChannelView(configuration: configuration) ※ { wk in 37 | wk.loadURL(url: url) 38 | } 39 | } 40 | } 41 | } 42 | 43 | override func viewDidAppear() { 44 | let autolayout = view.northLayoutFormat([:], [ 45 | "stack": stackView 46 | ]) 47 | autolayout("V:|[stack]|") 48 | autolayout("H:|[stack]|") 49 | showChannels() 50 | } 51 | 52 | override func viewWillDisappear() { 53 | Preferences.urls = channels.map { row in 54 | row.flatMap { ch in ch.url?.absoluteString } 55 | } 56 | } 57 | 58 | // MARK: - channel 59 | func addChannel(responder : NSResponder) { 60 | guard let wk = responder as? SlackChannelView else { return } 61 | guard let n = self.channels.index(where: { $0.contains(wk) }) else { return } 62 | 63 | channels[n].append(SlackChannelView(configuration: configuration) ※ { wk in 64 | wk.loadURL(url: defaultUrl) 65 | }) 66 | showChannels() 67 | } 68 | 69 | func removeChannel(responder : NSResponder) { 70 | self.channels = channels.map { row in 71 | row.filter { $0 != responder } 72 | } 73 | showChannels() 74 | } 75 | 76 | // MARK: - row 77 | func addRow() { 78 | let channel = SlackChannelView(configuration: configuration) ※ { wk in 79 | wk.loadURL(url: defaultUrl) 80 | } 81 | self.channels.append([channel]) 82 | showChannels() 83 | } 84 | 85 | func removeRow(responder : NSResponder) { 86 | guard let wk = responder as? SlackChannelView else { return } 87 | self.channels = self.channels.filter { !$0.contains(wk) } 88 | showChannels() 89 | } 90 | 91 | // MARK: - history 92 | func back(responder : NSResponder) { 93 | guard let wk = responder as? SlackChannelView else { return } 94 | wk.goBack() 95 | } 96 | 97 | func forward(responder : NSResponder) { 98 | guard let wk = responder as? SlackChannelView else { return } 99 | wk.goForward() 100 | } 101 | 102 | // MARK: - view 103 | private func showChannels() { 104 | let views = channels.map { row in 105 | NSStackView() ※ { sv in 106 | sv.spacing = 0.0 107 | sv.distribution = .fillEqually 108 | sv.setViews(row, in: .leading) 109 | } 110 | } 111 | stackView.setViews(views, in: .leading) 112 | } 113 | 114 | // MARK: - URL 115 | private var defaultUrl : String { 116 | get { 117 | return self.channels.first?.first?.url?.absoluteString ?? kSlackURL 118 | } 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /Slackdeck/styles.css: -------------------------------------------------------------------------------- 1 | #messages_container { 2 | margin-left: 0; 3 | } 4 | 5 | #notification_bar { 6 | width: 100vw; 7 | } 8 | 9 | .client_channels_list_container { 10 | display: none; 11 | } 12 | 13 | #channel_header_info { 14 | overflow: hidden; 15 | } 16 | 17 | #client_header { 18 | min-width: 0; 19 | } 20 | 21 | #client_header .channel_header { 22 | margin-left: 0; 23 | } 24 | 25 | body { 26 | min-width: 0; 27 | } 28 | -------------------------------------------------------------------------------- /docs/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mzp/SlackStack/0cc53f3f544126504cdd044716eec94249640242/docs/screenshot.png -------------------------------------------------------------------------------- /fastlane/Gymfile: -------------------------------------------------------------------------------- 1 | scheme "SlackStack" 2 | clean true 3 | codesigning_identity "Developer ID Application" 4 | output_directory "./build" 5 | --------------------------------------------------------------------------------