Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CodeMirror over Highlightr #70

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added mac/.DS_Store
Binary file not shown.
22 changes: 18 additions & 4 deletions mac/Bagel.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
8A814D05228ECCED0049A64E /* DetailSectionProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A814D04228ECCED0049A64E /* DetailSectionProtocol.swift */; };
8A814D07229025FF0049A64E /* VerticallyCenteredTextFieldCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A814D06229025FF0049A64E /* VerticallyCenteredTextFieldCell.swift */; };
9AAA3A9C54B46F8D2C8DD674 /* Pods_Bagel.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00E3BE2EECB0984D92EFCA30 /* Pods_Bagel.framework */; };
BA9D63CF2551155600F4F0DE /* CodeMirrorWebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA9D63CD2551155600F4F0DE /* CodeMirrorWebView.swift */; };
BA9D63D02551155600F4F0DE /* CodeMirrorView.bundle in Resources */ = {isa = PBXBuildFile; fileRef = BA9D63CE2551155600F4F0DE /* CodeMirrorView.bundle */; };
BC1F5B37216746D30045C871 /* FontManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC1F5B36216746D30045C871 /* FontManager.swift */; };
BC32643621738AF0006452FE /* KeyValueRepresentation.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC32643521738AF0006452FE /* KeyValueRepresentation.swift */; };
BC5E76C9216A64DB000F658D /* Theme.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC5E76C8216A64DB000F658D /* Theme.swift */; };
Expand Down Expand Up @@ -120,6 +122,8 @@
1191142921F8B9CB00BFCA48 /* CURLRepresentation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CURLRepresentation.swift; sourceTree = "<group>"; };
8A814D04228ECCED0049A64E /* DetailSectionProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailSectionProtocol.swift; sourceTree = "<group>"; };
8A814D06229025FF0049A64E /* VerticallyCenteredTextFieldCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VerticallyCenteredTextFieldCell.swift; sourceTree = "<group>"; };
BA9D63CD2551155600F4F0DE /* CodeMirrorWebView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CodeMirrorWebView.swift; sourceTree = "<group>"; };
BA9D63CE2551155600F4F0DE /* CodeMirrorView.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = CodeMirrorView.bundle; sourceTree = "<group>"; };
BC1F5B36216746D30045C871 /* FontManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FontManager.swift; sourceTree = "<group>"; };
BC32643521738AF0006452FE /* KeyValueRepresentation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyValueRepresentation.swift; sourceTree = "<group>"; };
BC5E76C8216A64DB000F658D /* Theme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Theme.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -269,6 +273,15 @@
path = Cells;
sourceTree = "<group>";
};
BA9D63CC2551154900F4F0DE /* CodeMirror */ = {
isa = PBXGroup;
children = (
BA9D63CE2551155600F4F0DE /* CodeMirrorView.bundle */,
BA9D63CD2551155600F4F0DE /* CodeMirrorWebView.swift */,
);
path = CodeMirror;
sourceTree = "<group>";
};
BC1F5B35216746CA0045C871 /* Fonts */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -470,6 +483,7 @@
BCD0E025210F5E0D00CE5C7B /* Bagel */ = {
isa = PBXGroup;
children = (
BA9D63CC2551154900F4F0DE /* CodeMirror */,
BC911A3F2168BC7F00B755D4 /* Themes */,
BC1F5B35216746CA0045C871 /* Fonts */,
BC75A80921737A7300A2A5B3 /* jsonViewer */,
Expand Down Expand Up @@ -774,6 +788,7 @@
BCFC852A21383171001EC6D7 /* Packets.storyboard in Resources */,
BCEB9AB1217CD264008BBF3C /* Effra_Std_BdIt.ttf in Resources */,
BCD0E02E210F5E0D00CE5C7B /* Main.storyboard in Resources */,
BA9D63D02551155600F4F0DE /* CodeMirrorView.bundle in Resources */,
BCEB9AB5217CD269008BBF3C /* DroidSansMono.ttf in Resources */,
BC75A80F21737A7300A2A5B3 /* json-viewer-dark-theme.css in Resources */,
BCEB9AB2217CD264008BBF3C /* Effra_Std_Lt.ttf in Resources */,
Expand Down Expand Up @@ -827,13 +842,11 @@
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Bagel/Pods-Bagel-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework",
"${BUILT_PRODUCTS_DIR}/Highlightr/Highlightr.framework",
"${BUILT_PRODUCTS_DIR}/macOSThemeKit/macOSThemeKit.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CocoaAsyncSocket.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Highlightr.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/macOSThemeKit.framework",
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -893,6 +906,7 @@
BC9C779F2163528E00E8ADE8 /* RequestHeadersViewModel.swift in Sources */,
BC911A492168F27700B755D4 /* DarkTheme.swift in Sources */,
BC911A442168E10F00B755D4 /* LightTheme.swift in Sources */,
BA9D63CF2551155600F4F0DE /* CodeMirrorWebView.swift in Sources */,
BCD0E029210F5E0D00CE5C7B /* ViewController.swift in Sources */,
BC1F5B37216746D30045C871 /* FontManager.swift in Sources */,
BCA60B522162655000B9DCAD /* FlatTableHeaderCell.swift in Sources */,
Expand Down Expand Up @@ -1081,7 +1095,7 @@
CODE_SIGN_ENTITLEMENTS = Bagel/Bagel.entitlements;
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = D54Y88Y9CY;
INFOPLIST_FILE = Bagel/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
Expand All @@ -1100,7 +1114,7 @@
CODE_SIGN_ENTITLEMENTS = Bagel/Bagel.entitlements;
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = D54Y88Y9CY;
INFOPLIST_FILE = Bagel/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (C) 2017 by Marijn Haverbeke <[email protected]> and others

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.CodeMirror-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;height:auto;z-index:9}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading