-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split Resource Viewer into a Read-only Resource Viewer and an editabl…
…e Scripture Editor (#877)
- Loading branch information
Showing
77 changed files
with
513 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
extensions/src/resource-viewer/README.md → ...s/src/platform-scripture-editor/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
89 changes: 89 additions & 0 deletions
89
extensions/src/platform-scripture-editor/contributions/menus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"mainMenu": { | ||
"columns": {}, | ||
"groups": {}, | ||
"items": [ | ||
{ | ||
"label": "%mainMenu_openPlatformScriptureEditor%", | ||
"localizeNotes": "Application main menu > Project > Open Scripture Editor", | ||
"group": "platform.projectResources", | ||
"order": -100, | ||
"command": "platformScriptureEditor.openScriptureEditor" | ||
}, | ||
{ | ||
"label": "%mainMenu_openPlatformResourceViewer%", | ||
"localizeNotes": "Application main menu > Project > Open Resource Viewer", | ||
"group": "platform.projectResources", | ||
"order": -100, | ||
"command": "platformScriptureEditor.openResourceViewer" | ||
} | ||
] | ||
}, | ||
"webViewMenus": { | ||
"platformScriptureEditor.react": { | ||
"includeDefaults": true, | ||
"topMenu": { | ||
"columns": { | ||
"platformScriptureEditor.options": { | ||
"label": "%webView_platformScriptureEditor_options%", | ||
"order": 3 | ||
}, | ||
"platformScriptureEditor.info": { | ||
"label": "%webView_platformScriptureEditor_info%", | ||
"order": 4 | ||
} | ||
}, | ||
"groups": { | ||
"platformScriptureEditor.colors": { | ||
"column": "platformScriptureEditor.options", | ||
"order": 1 | ||
}, | ||
"platformScriptureEditor.layout": { | ||
"column": "platformScriptureEditor.options", | ||
"order": 2 | ||
}, | ||
"platformScriptureEditor.general": { | ||
"column": "platformScriptureEditor.info", | ||
"order": 2 | ||
} | ||
}, | ||
"items": [ | ||
{ | ||
"label": "%webView_platformScriptureEditor_backgroundColor%", | ||
"group": "platformScriptureEditor.colors", | ||
"order": 2, | ||
"command": "platformScriptureEditor.changeBackgroundColor" | ||
}, | ||
{ | ||
"label": "%webView_platformScriptureEditor_textColor%", | ||
"group": "platformScriptureEditor.colors", | ||
"order": 1, | ||
"command": "platformScriptureEditor.changeTextColor" | ||
}, | ||
{ | ||
"label": "%webView_platformScriptureEditor_thickBorders%", | ||
"group": "platformScriptureEditor.layout", | ||
"order": 1, | ||
"command": "platformScriptureEditor.showThickBorders" | ||
}, | ||
{ | ||
"label": "%webView_platformScriptureEditor_publisherInfo%", | ||
"group": "platformScriptureEditor.general", | ||
"order": 1, | ||
"command": "platformScriptureEditor.showPublisherInfo" | ||
}, | ||
{ | ||
"label": "%webView_platformScriptureEditor_copyrightInfo%", | ||
"group": "platformScriptureEditor.general", | ||
"order": 2, | ||
"command": "platformScriptureEditor.showCopyrightInfo" | ||
} | ||
] | ||
}, | ||
"contextMenu": { | ||
"groups": {}, | ||
"items": [] | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
extensions/src/resource-viewer/manifest.json → ...c/platform-scripture-editor/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
extensions/src/resource-viewer/package.json → ...rc/platform-scripture-editor/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
extensions/src/platform-scripture-editor/src/_editor-overrides.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
/* Platform.Bible image protocol overrides */ | ||
/* stylelint-disable selector-no-qualifying-type */ | ||
|
||
.editor-container { | ||
max-width: none; | ||
} | ||
|
||
.link-editor div.link-edit { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/pencil-fill.svg'); | ||
} | ||
|
||
i.undo { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/arrow-counterclockwise.svg'); | ||
} | ||
|
||
i.redo { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/arrow-clockwise.svg'); | ||
} | ||
|
||
%paragraph { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/text-paragraph.svg'); | ||
} | ||
|
||
%h-one { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/type-h1.svg'); | ||
} | ||
|
||
%h-two { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/type-h2.svg'); | ||
} | ||
|
||
%h-three { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/type-h3.svg'); | ||
} | ||
|
||
%square-one { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/1-square.svg'); | ||
} | ||
|
||
%square-two { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/2-square.svg'); | ||
} | ||
|
||
%square-three { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/3-square.svg'); | ||
} | ||
|
||
%square-four { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/4-square.svg'); | ||
} | ||
|
||
%bookmark { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/bookmark.svg'); | ||
} | ||
|
||
%file-earmark { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/file-earmark.svg'); | ||
} | ||
|
||
.icon.bullet-list, | ||
.icon.ul { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/list-ul.svg'); | ||
} | ||
|
||
.icon.numbered-list, | ||
.icon.ol { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/list-ol.svg'); | ||
} | ||
|
||
%quote { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/chat-square-quote.svg'); | ||
} | ||
|
||
.icon.ban { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/ban.svg'); | ||
} | ||
|
||
.icon.code { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/code.svg'); | ||
} | ||
|
||
i.bold { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/type-bold.svg'); | ||
} | ||
|
||
i.italic { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/type-italic.svg'); | ||
} | ||
|
||
i.underline { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/type-underline.svg'); | ||
} | ||
|
||
i.strikethrough { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/type-strikethrough.svg'); | ||
} | ||
|
||
i.code { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/code.svg'); | ||
} | ||
|
||
i.link { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/link.svg'); | ||
} | ||
|
||
i.left-align { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/text-left.svg'); | ||
} | ||
|
||
i.center-align { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/text-center.svg'); | ||
} | ||
|
||
i.right-align { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/text-right.svg'); | ||
} | ||
|
||
i.justify-align { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/justify.svg'); | ||
} | ||
|
||
i.chevron-down { | ||
background-image: url('papi-extension://platformScriptureEditor/assets/images/icons/chevron-down.svg'); | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.