Vue Attract: Sort/filterable table based on Vue
Initial commit implementing sortable and filterable tables for attract using Vue.
This commit is contained in:
@@ -1 +1,3 @@
|
||||
export { thenMarkdownToHtml } from './markdown'
|
||||
export { thenMarkdownToHtml } from './markdown'
|
||||
export { thenGetProject } from './projects'
|
||||
export { thenGetNodes } from './nodes'
|
||||
|
8
src/scripts/js/es6/common/api/nodes.js
Normal file
8
src/scripts/js/es6/common/api/nodes.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function thenGetNodes(where, embedded={}) {
|
||||
let encodedWhere = encodeURIComponent(JSON.stringify(where));
|
||||
let encodedEmbedded = encodeURIComponent(JSON.stringify(embedded));
|
||||
|
||||
return $.get(`/api/nodes?where=${encodedWhere}&embedded=${encodedEmbedded}`);
|
||||
}
|
||||
|
||||
export { thenGetNodes }
|
5
src/scripts/js/es6/common/api/projects.js
Normal file
5
src/scripts/js/es6/common/api/projects.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function thenGetProject(projectId) {
|
||||
return $.get(`/api/projects/${projectId}`);
|
||||
}
|
||||
|
||||
export { thenGetProject }
|
Reference in New Issue
Block a user