-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from ExtensionEngine/release/2.4
v2.4
- Loading branch information
Showing
73 changed files
with
2,928 additions
and
1,472 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
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 |
---|---|---|
@@ -1,18 +1,24 @@ | ||
# | ||
# General server behavior | ||
# | ||
|
||
########################### | ||
# General server behavior # | ||
########################### | ||
|
||
# Express app will listen on this port. | ||
SERVER_PORT=3000 | ||
SERVER_URL=http://localhost:3000 | ||
|
||
# | ||
# Database | ||
# | ||
POSTGRES_URI=postgres://<user>:<pass>@localhost:5432/cima_auth | ||
|
||
# | ||
# Security and authentication | ||
# | ||
############ | ||
# Database # | ||
############ | ||
|
||
POSTGRES_URI=postgres://<user>:<pass>@localhost:5432/tailor | ||
|
||
|
||
############################### | ||
# Security and authentication # | ||
############################### | ||
|
||
# Origins allowed in CORS requests. Multiple origins can be listed by using | ||
# comma as a separator. In development, this will typically match your webpack | ||
# dev server address: | ||
|
@@ -22,29 +28,57 @@ CORS_ALLOWED_ORIGINS=http://localhost:8080 | |
AUTH_SALT_ROUNDS=10 | ||
|
||
# Session secret string. | ||
AUTH_JWT_SECRET=<some secret string> | ||
|
||
# | ||
# Pagination | ||
# | ||
# Default page number. | ||
CURRENT_PAGE=1 | ||
# Number of items loaded per page. | ||
ITEMS_PER_PAGE=20 | ||
|
||
# | ||
# | ||
EMAIL_ADDRESS=[email protected] | ||
EMAIL_USER=xxxxxx | ||
EMAIL_PASSWORD=xxxxxxxx | ||
AUTH_JWT_SECRET= | ||
|
||
|
||
######### | ||
# Email # | ||
######### | ||
|
||
EMAIL_ADDRESS=[email protected] | ||
EMAIL_USER= | ||
EMAIL_PASSWORD= | ||
EMAIL_HOST=email-smtp.us-east-1.amazonaws.com | ||
|
||
# | ||
# Storage | ||
# | ||
STORAGE_KEY=<storage-identifier> | ||
STORAGE_SECRET=<storage-secret> | ||
STORAGE_REGION=<storage-region> | ||
STORAGE_BUCKET=<storage-bucket> | ||
STORAGE_PROVIDER=<storage-provider> | ||
|
||
########### | ||
# Storage # | ||
########### | ||
|
||
# amazon or filesystem | ||
STORAGE_PROVIDER=filesystem | ||
|
||
# Filesystem provider settings | ||
STORAGE_PATH= | ||
|
||
# Amazon provider settings | ||
STORAGE_KEY= | ||
STORAGE_SECRET= | ||
STORAGE_REGION= | ||
STORAGE_BUCKET= | ||
|
||
|
||
################# | ||
# Schema config # | ||
################# | ||
|
||
# In order to disable default schema, create custom schema and set this param | ||
# to falsy value. Disabling default schema won't work if custom schema | ||
# does not exist. | ||
ENABLE_DEFAULT_SCHEMA=1 | ||
|
||
|
||
#################### | ||
# General settings # | ||
#################### | ||
|
||
# String template that will be interpolated on the client using two route params, | ||
# repositoryId and activityId. | ||
PREVIEW_URL=https://myserver.com/repository/{repositoryId}/activity/{activityId} | ||
|
||
# Terminal (forcefully enable color) | ||
FORCE_COLOR=1 | ||
|
||
# Do not group published resources by outline item id. | ||
# repository/id/resourceId* instead of repository/id/outlineId/resourceId* | ||
FLAT_REPO_STRUCTURE=1 |
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
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,10 @@ | ||
import request from './request'; | ||
|
||
function getActivities(courseId, params) { | ||
return request.get(`/courses/${courseId}/activities`, { params }) | ||
.then(res => res.data.data); | ||
} | ||
|
||
export default { | ||
getActivities | ||
}; |
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
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.