-
Notifications
You must be signed in to change notification settings - Fork 715
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
Granular Import Export UIs #2610
Merged
rtibbles
merged 56 commits into
learningequality:develop
from
jonboiser:available-channels
Nov 23, 2017
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
1da0add
Add "available channels page"
jonboiser 4fff7ee
Add objectAssign config to buble-loader
jonboiser 2dd6aa8
Add selectedResourcesSize component
jonboiser b96744f
Convert some object.assigns to object spread
jonboiser e91bf62
Stub select content page
jonboiser 75fa020
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser 29fe79c
Move channelFactory to utils
jonboiser aad8350
Show description and resource counts
jonboiser db49a17
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser 5fcad4d
Show differences between channel on/off device
jonboiser fff65ad
Add selected resources size component
jonboiser 3adc890
Show new version ui-alert
jonboiser 6775eac
Integrate with on-device info display components
jonboiser 4e56fb2
Add ‘add node’ actions
jonboiser 752cdaf
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser e533d03
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser b5defb8
Configure vue-loader to use object.assign
jonboiser 122d26e
Call CNG API with drive_id instead of datafolder
jonboiser 7dc7ea9
Put channel root in breadcrumbs metadata
jonboiser da2dc20
Add transformBreadcrumb utility
jonboiser 33ad5fb
Add showAvailableChannelsPage action
jonboiser c85d6c5
Add select-drive-modal
jonboiser a9ec297
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser d9244d1
Linting and broken integrations
jonboiser 9425616
Add ‘showAllCrumbs’ prop to k-breadcrumbs
jonboiser d52f9ee
Style select-content-page
jonboiser b79c504
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser 221d39b
Integrate with remote channels API
jonboiser 0325b91
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser f140574
Integrate RemoteChannelAPI
jonboiser 2a23c35
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser f57774c
Cleanup treeViewUtils
jonboiser 20f9b14
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser 39726d9
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser 60dd89a
Fix tests
jonboiser be13b4d
Pull tasks outside of resource layer
jonboiser 883bac3
Fix channel size counts
jonboiser bd7c21e
Add error ui-alerts to select-content-page
jonboiser 574634b
Cleanup
jonboiser 1e122ad
Add better “no drives” message to select drive modal
jonboiser f40df7e
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser 0c9467d
INtegrate filesize endpoint
jonboiser 1f00eaf
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser 8c9803b
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser 4362488
Change resources_on_device -> on_device_resources
jonboiser 8c4fa00
Merge remote-tracking branch 'origin/develop' into available-channels
jonboiser 44587cf
Prettier autofixes
jonboiser 9e7a8de
Cleanup
jonboiser 2209afd
On manage-content hide channels without downloaded resources
jonboiser a5c0ac8
Fix double node-adding bug
jonboiser c38765b
breadcrumbs style guide is 'in progress' - re #2664
indirectlylit f42ef22
Fix channel filtering on localexport channels available
jonboiser 1969baa
Hide unavailable nodes during localexport
jonboiser d47f82a
Reset included/omitted lists when going back in wizard
jonboiser 932d155
Merge branch 'develop' into available-channels
jonboiser fb80aff
Merge branch 'develop' into available-channels
indirectlylit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
28 changes: 28 additions & 0 deletions
28
kolibri/core/assets/src/api-resources/contentNodeGranular.js
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,28 @@ | ||
import { Resource } from '../api-resource'; | ||
|
||
/** | ||
* @example Get ContentNode from a local USB drive for the purposes of importing from that drive. | ||
* ContentNodeGranular.getModel(pk).fetch({ importing_from_drive_id: 'drive_1' }); | ||
* | ||
* @example Get ContentNode from a remote channel (whose content DB has been downloaded). | ||
* OR exporting to a USB drive. | ||
* ContentNodeGranular.getModel(pk).fetch(); | ||
* | ||
* Note: if the top-level of the channel is desired, then `pk` must be the channels's `root` id. | ||
*/ | ||
export default class ContentNodeGranularResource extends Resource { | ||
static resourceName() { | ||
return 'contentnode_granular'; | ||
} | ||
|
||
static idKey() { | ||
return 'pk'; | ||
} | ||
|
||
// Given a node ID, returns the {total_file_size, on_device_file_size} | ||
getFileSizes(pk) { | ||
return this.client({ | ||
path: `${this.urls['contentnodefilesize_list']()}${pk}`, | ||
}); | ||
} | ||
} |
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,7 @@ | ||
import { Resource } from '../api-resource'; | ||
|
||
export default class RemoteChannelResource extends Resource { | ||
static resourceName() { | ||
return 'remotechannel'; | ||
} | ||
} |
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.