Skip to content
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

Use EXPORT_CONTENT_DISPOSITION for project xml export #1149

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ dist

rdmo/management/static

rdmo/projects/static/projects/js/projects.js
rdmo/core/static/core/js/base.js
rdmo/core/static/core/fonts
rdmo/core/static/core/css/base.css

rdmo/projects/static/projects/js/*.js
rdmo/projects/static/projects/fonts
rdmo/projects/static/projects/css/projects.css
rdmo/projects/static/projects/css/*.css

screenshots
Binary file added rdmo/core/assets/img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
260 changes: 260 additions & 0 deletions rdmo/core/assets/img/rdmo-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions rdmo/core/assets/js/actions/actionTypes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export const UPDATE_CONFIG = 'UPDATE_CONFIG'
export const DELETE_CONFIG = 'DELETE_CONFIG'

export const ADD_TO_PENDING = 'ADD_TO_PENDING'
export const REMOVE_FROM_PENDING = 'REMOVE_FROM_PENDING'

export const FETCH_SETTINGS_ERROR = 'FETCH_SETTINGS_ERROR'
export const FETCH_SETTINGS_INIT = 'FETCH_SETTINGS_INIT'
export const FETCH_SETTINGS_SUCCESS = 'FETCH_SETTINGS_SUCCESS'

export const FETCH_TEMPLATES_ERROR = 'FETCH_TEMPLATES_ERROR'
export const FETCH_TEMPLATES_INIT = 'FETCH_TEMPLATES_INIT'
export const FETCH_TEMPLATES_SUCCESS = 'FETCH_TEMPLATES_SUCCESS'

export const FETCH_CURRENT_USER_ERROR = 'FETCH_CURRENT_USER_ERROR'
export const FETCH_CURRENT_USER_INIT = 'FETCH_CURRENT_USER_INIT'
export const FETCH_CURRENT_USER_SUCCESS = 'FETCH_CURRENT_USER_SUCCESS'
9 changes: 9 additions & 0 deletions rdmo/core/assets/js/actions/configActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { UPDATE_CONFIG, DELETE_CONFIG } from './actionTypes'

export function updateConfig(path, value, ls = false) {
return {type: UPDATE_CONFIG, path, value, ls}
}

export function deleteConfig(path, ls = false) {
return {type: DELETE_CONFIG, path, ls}
}
9 changes: 9 additions & 0 deletions rdmo/core/assets/js/actions/pendingActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { ADD_TO_PENDING, REMOVE_FROM_PENDING } from './actionTypes'

export function addToPending(item) {
return {type: ADD_TO_PENDING, item}
}

export function removeFromPending(item) {
return {type: REMOVE_FROM_PENDING, item}
}
25 changes: 25 additions & 0 deletions rdmo/core/assets/js/actions/settingsActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import CoreApi from '../api/CoreApi'

import { FETCH_SETTINGS_ERROR, FETCH_SETTINGS_INIT, FETCH_SETTINGS_SUCCESS } from './actionTypes'

export function fetchSettings() {
return function(dispatch) {
dispatch(fetchSettingsInit())

return CoreApi.fetchSettings()
.then((settings) => dispatch(fetchSettingsSuccess(settings)))
.catch((errors) => dispatch(fetchSettingsError(errors)))
}
}

export function fetchSettingsInit() {
return {type: FETCH_SETTINGS_INIT}
}

export function fetchSettingsSuccess(settings) {
return {type: FETCH_SETTINGS_SUCCESS, settings}
}

export function fetchSettingsError(errors) {
return {type: FETCH_SETTINGS_ERROR, errors}
}
25 changes: 25 additions & 0 deletions rdmo/core/assets/js/actions/templateActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import CoreApi from '../api/CoreApi'

import { FETCH_TEMPLATES_ERROR, FETCH_TEMPLATES_INIT, FETCH_TEMPLATES_SUCCESS } from './actionTypes'

export function fetchTemplates() {
return function(dispatch) {
dispatch(fetchTemplatesInit())

return CoreApi.fetchTemplates()
.then((templates) => dispatch(fetchTemplatesSuccess(templates)))
.catch((errors) => dispatch(fetchTemplatesError(errors)))
}
}

export function fetchTemplatesInit() {
return {type: FETCH_TEMPLATES_INIT}
}

export function fetchTemplatesSuccess(templates) {
return {type: FETCH_TEMPLATES_SUCCESS, templates}
}

export function fetchTemplatesError(errors) {
return {type: FETCH_TEMPLATES_ERROR, errors}
}
25 changes: 25 additions & 0 deletions rdmo/core/assets/js/actions/userActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import AccountsApi from '../api/AccountsApi'

import { FETCH_CURRENT_USER_ERROR, FETCH_CURRENT_USER_INIT, FETCH_CURRENT_USER_SUCCESS } from './actionTypes'

export function fetchCurrentUser() {
return function(dispatch) {
dispatch(fetchCurrentUserInit())

return AccountsApi.fetchCurrentUser(true)
.then(currentUser => dispatch(fetchCurrentUserSuccess({ currentUser })))
.catch(error => dispatch(fetchCurrentUserError(error)))
}
}

export function fetchCurrentUserInit() {
return {type: FETCH_CURRENT_USER_INIT}
}

export function fetchCurrentUserSuccess(currentUser) {
return {type: FETCH_CURRENT_USER_SUCCESS, currentUser}
}

export function fetchCurrentUserError(error) {
return {type: FETCH_CURRENT_USER_ERROR, error}
}
Loading
Loading