-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feature/book-toggle…
…-no-border
- Loading branch information
Showing
21 changed files
with
790 additions
and
274 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@ECHO OFF | ||
REM Extract Scripture Forge Project Data | ||
REM | ||
REM Usage: | ||
REM extract-project {server_name}:{server_port} {project_id} | ||
REM | ||
REM Example: | ||
REM extract-project localhost:27017 66bb989d961308bb2652ac15 | ||
REM | ||
REM Notes: | ||
REM - User associations to projects will not be extracted. This must be done manually. | ||
REM - Flat files need to be restored manually. | ||
REM - To restore the project to a MongoDB server, run the following command: | ||
REM mongorestore -h {server_name}:{server_port} {project_id} | ||
|
||
SETLOCAL | ||
IF %1.==. GOTO NO_SERVER | ||
IF %2.==. GOTO NO_PROJECTID | ||
SET SERVER=%1 | ||
SET PROJECTID=%2 | ||
SET OUTPUT_PATH=%PROJECTID% | ||
|
||
ECHO Extracting %PROJECTID% from %SERVER%... | ||
mongodump -h %SERVER% -d xforge -c sf_projects -o %OUTPUT_PATH% -q "{\"_id\":\"%PROJECTID%\"}" | ||
mongodump -h %SERVER% -d xforge -c o_sf_projects -o %OUTPUT_PATH% -q "{\"d\":\"%PROJECTID%\"}" | ||
mongodump -h %SERVER% -d xforge -c sf_project_secrets -o %OUTPUT_PATH% -q "{\"_id\":\"%PROJECTID%\"}" | ||
mongodump -h %SERVER% -d xforge -c sf_project_user_configs -o %OUTPUT_PATH% -q "{\"_id\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c o_sf_project_user_configs -o %OUTPUT_PATH% -q "{\"d\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c texts -o %OUTPUT_PATH% -q "{\"_id\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c o_texts -o %OUTPUT_PATH% -q "{\"d\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c m_texts -o %OUTPUT_PATH% -q "{\"d\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c questions -o %OUTPUT_PATH% -q "{\"_id\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c o_questions -o %OUTPUT_PATH% -q "{\"d\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c note_threads -o %OUTPUT_PATH% -q "{\"_id\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c o_note_threads -o %OUTPUT_PATH% -q "{\"d\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c text_audio -o %OUTPUT_PATH% -q "{\"_id\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c o_text_audio -o %OUTPUT_PATH% -q "{\"d\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c biblical_terms -o %OUTPUT_PATH% -q "{\"_id\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c o_biblical_terms -o %OUTPUT_PATH% -q "{\"d\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c training_data -o %OUTPUT_PATH% -q "{\"_id\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
mongodump -h %SERVER% -d xforge -c o_training_data -o %OUTPUT_PATH% -q "{\"d\":{\"$regex\":\"^%PROJECTID%:\"}}" | ||
GOTO END | ||
|
||
:NO_SERVER | ||
ECHO Please specify the server and port as the first argument | ||
GOTO END | ||
|
||
:NO_PROJECTID | ||
ECHO Please specify a project id as the second argument | ||
GOTO END | ||
:END |
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,48 @@ | ||
#!/bin/bash | ||
# Extract Scripture Forge Project Data | ||
# | ||
# Usage: | ||
# extract-project.sh {server_name}:{server_port} {project_id} | ||
# | ||
# Example: | ||
# ./extract-project.sh localhost:27017 66bb989d961308bb2652ac15 | ||
# | ||
# Notes: | ||
# - User associations to projects will not be extracted. This must be done manually. | ||
# - Flat files need to be restored manually. | ||
# - To restore the project to a MongoDB server, run the following command: | ||
# mongorestore -h {server_name}:{server_port} {project_id} | ||
|
||
if [ -z "$1" ]; then | ||
echo "Please specify the server and port as the first argument" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$2" ]; then | ||
echo "Please specify a project id as the second argument" | ||
exit 1 | ||
fi | ||
|
||
SERVER=$1 | ||
PROJECTID=$2 | ||
OUTPUT_PATH=$PROJECTID | ||
|
||
echo "Extracting $PROJECTID from $SERVER..." | ||
mongodump -h "$SERVER" -d xforge -c sf_projects -o "$OUTPUT_PATH" -q "{\"_id\":\"$PROJECTID\"}" | ||
mongodump -h "$SERVER" -d xforge -c o_sf_projects -o "$OUTPUT_PATH" -q "{\"d\":\"$PROJECTID\"}" | ||
mongodump -h "$SERVER" -d xforge -c sf_project_secrets -o "$OUTPUT_PATH" -q "{\"_id\":\"$PROJECTID\"}" | ||
mongodump -h "$SERVER" -d xforge -c sf_project_user_configs -o "$OUTPUT_PATH" -q "{\"_id\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c o_sf_project_user_configs -o "$OUTPUT_PATH" -q "{\"d\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c texts -o "$OUTPUT_PATH" -q "{\"_id\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c o_texts -o "$OUTPUT_PATH" -q "{\"d\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c m_texts -o "$OUTPUT_PATH" -q "{\"d\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c questions -o "$OUTPUT_PATH" -q "{\"_id\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c o_questions -o "$OUTPUT_PATH" -q "{\"d\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c note_threads -o "$OUTPUT_PATH" -q "{\"_id\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c o_note_threads -o "$OUTPUT_PATH" -q "{\"d\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c text_audio -o "$OUTPUT_PATH" -q "{\"_id\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c o_text_audio -o "$OUTPUT_PATH" -q "{\"d\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c biblical_terms -o "$OUTPUT_PATH" -q "{\"_id\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c o_biblical_terms -o "$OUTPUT_PATH" -q "{\"d\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c training_data -o "$OUTPUT_PATH" -q "{\"_id\":{\"\$regex\":\"^$PROJECTID:\"}}" | ||
mongodump -h "$SERVER" -d xforge -c o_training_data -o "$OUTPUT_PATH" -q "{\"d\":{\"\$regex\":\"^$PROJECTID:\"}}" |
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
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 |
---|---|---|
|
@@ -9,3 +9,7 @@ | |
column-gap: 10px; | ||
} | ||
} | ||
|
||
.raw-draft-config { | ||
font-family: monospace; | ||
} |
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
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
15 changes: 15 additions & 0 deletions
15
...rge.Scripture/ClientApp/src/app/shared/book-multi-select/book-multi-select.component.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
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
Oops, something went wrong.