Skip to content

Commit ba7ba09

Browse files
authored
Merge pull request #319 from ExtensionEngine/release/3.2
Release 3.2
2 parents 6ae4137 + e05ef44 commit ba7ba09

File tree

181 files changed

+6708
-4889
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+6708
-4889
lines changed

.env.example

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ STORAGE_BUCKET=
5151
# Disabling default schema won't work if custom schema does not exist.
5252
ENABLE_DEFAULT_SCHEMA=1
5353

54-
# String template that will be interpolated on the client using two route params,
55-
# repositoryId and activityId.
56-
PREVIEW_URL=https://myserver.com/repository/{repositoryId}/activity/{activityId}
54+
# LMS preview route
55+
PREVIEW_URL=https://boutique.localhost/api/v1/preview/
56+
57+
# Logger
58+
LOG_LEVEL='info'
5759

5860
# Terminal (forcefully enable color)
5961
FORCE_COLOR=1

.eslintrc.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const isDev = process.env.NODE_ENV === 'development';
24

35
module.exports = {
@@ -29,10 +31,9 @@ module.exports = {
2931
anonymous: 'always',
3032
named: 'never'
3133
}],
32-
// 'sort-imports': ['error', {
33-
// 'ignoreCase': true,
34-
// 'ignoreMemberSort': false
35-
// }]
34+
'sort-imports': ['error', {
35+
'ignoreCase': true
36+
}],
3637
// Vue rules
3738
'vue/html-self-closing': 'off',
3839
'vue/attribute-hyphenation': 'off',

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Known Vulnerabilities](https://snyk.io/test/github/ExtensionEngine/tailor/develop/badge.svg)](https://snyk.io/test/github/ExtensionEngine/tailor)
66
[![GitHub license](https://badgen.net/github/license/ExtensionEngine/tailor)](https://github.com/ExtensionEngine/tailor/blob/develop/LICENSE)
77
[![js semistandard style](https://badgen.net/badge/code%20style/semistandard/pink)](https://github.com/Flet/semistandard)
8-
[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)
8+
[![Open Source Love](https://badgen.net/badge/Open%20Source/%E2%9D%A4/3eaf8e)](https://github.com/ellerbrock/open-source-badge/)
99

1010
Adaptive course authoring platform.
1111

build/plugins/html-version-spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ exports.apply = ({ config, pkg }) => {
1414
return getVersion(pkg);
1515
}
1616
};
17-
if (isObject(config.html)) {
18-
return Object.assign(config.html, { meta });
19-
}
2017
if (isObject(config.pages)) {
2118
return forEach(config.pages, page => Object.assign(page, { meta }));
2219
}
20+
const { output } = config;
21+
output.html = output.html || {};
22+
Object.assign(output.html, { meta });
2323
};
2424

2525
function getVersion(pkg) {
26-
const semver = pkg.data.version;
26+
const { codename, version } = pkg.data;
2727
try {
2828
const rev = execSync('git', ['rev-parse', '--short', 'HEAD']);
29-
return `${semver}-rev-${rev}`;
29+
return `${version}-rev-${rev} (${codename})`;
3030
} catch (err) {
3131
console.error(err);
3232
}
33-
return `${semver}`;
33+
return `${version} (${codename})`;
3434
}

client/App.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@
1111
<script>
1212
import ConfirmationModal from 'components/common/ConfirmationModal';
1313
import isIexplorer from 'is-iexplorer';
14+
import { mapState } from 'vuex';
1415
import Navbar from 'components/common/Navbar';
15-
import { mapGetters } from 'vuex-module';
1616
1717
if (isIexplorer) document.body.classList.add('ie');
1818
1919
export default {
2020
name: 'app',
21-
computed: mapGetters(['user']),
21+
computed: mapState({
22+
user: state => state.auth.user
23+
}),
2224
components: {
2325
ConfirmationModal,
2426
Navbar
@@ -40,20 +42,20 @@ html {
4042
4143
#app {
4244
color: rgba(0,0,0,0.87);
43-
font-family: Poppins, Helvetica, Arial, sans-serif;
45+
font-family: $font-family-primary;
4446
-webkit-font-smoothing: antialiased;
4547
-moz-osx-font-smoothing: grayscale;
4648
text-align: center;
4749
overflow: hidden;
4850
}
4951
50-
.v-content .view {
51-
overflow-y: scroll;
52-
overflow-y: overlay;
53-
}
54-
5552
.application, .v-content, .view {
5653
width: 100%;
5754
height: 100%;
5855
}
56+
57+
.v-content .view {
58+
overflow-y: scroll;
59+
overflow-y: overlay;
60+
}
5961
</style>

client/api/activity.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ function getActivities(courseId, params) {
55
.then(res => res.data.data);
66
}
77

8+
function createPreview(courseId, activityId) {
9+
return request.get(`courses/${courseId}/activities/${activityId}/preview`)
10+
.then(res => res.data.location);
11+
}
12+
813
export default {
14+
createPreview,
915
getActivities
1016
};

client/api/user.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import request from './request';
2+
3+
const extractData = res => res.data.data;
4+
5+
function fetch(params) {
6+
return request.get('/users', { params }).then(extractData);
7+
}
8+
9+
function upsert(data) {
10+
return request.post('/users', data).then(extractData);
11+
}
12+
13+
function remove({ id }) {
14+
return request.delete(`/users/${id}`);
15+
}
16+
17+
function reinvite({ id }) {
18+
return request.post(`/users/${id}/reinvite`);
19+
}
20+
21+
export default {
22+
fetch,
23+
upsert,
24+
remove,
25+
reinvite
26+
};
4.18 KB
Binary file not shown.
Lines changed: 1 addition & 16 deletions
Loading
Lines changed: 1 addition & 16 deletions
Loading

0 commit comments

Comments
 (0)