1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- import { timelineDebugData } from './timelineDebugData.js'
-
- export const FETCH_CONFIG = {
- headers: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json',
- 'Authorization': 'Basic ' + btoa(`${'admin@admin.admin'}:${'admin@admin.admin'}`)
- }
- }
-
- export const MODE = {
- VIEW: 'view',
- EDIT: 'edit',
- REVISION: 'revision'
- }
-
- export const debug = {
- config: {
- label: 'Text Document',
- slug: 'html-documents',
- faIcon: 'file-text-o',
- hexcolor: '#3f52e3',
- creationLabel: 'Write a document',
- domContainer: 'appContainer',
- apiUrl: 'http://localhost:6543/api/v2',
- mockApiUrl: 'http://localhost:3001',
- apiHeader: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json'
- // 'Authorization': 'Basic ' + btoa(`${'admin@admin.admin'}:${'admin@admin.admin'}`)
- },
- availableStatuses: [{
- label: 'Open',
- slug: 'open',
- faIcon: 'square-o',
- hexcolor: '#3f52e3',
- globalStatus: 'open'
- }, {
- label: 'Validated',
- slug: 'closed-validated',
- faIcon: 'check-square-o',
- hexcolor: '#008000',
- globalStatus: 'closed'
- }, {
- label: 'Cancelled',
- slug: 'closed-unvalidated',
- faIcon: 'close',
- hexcolor: '#f63434',
- globalStatus: 'closed'
- }, {
- label: 'Deprecated',
- slug: 'closed-deprecated',
- faIcon: 'warning',
- hexcolor: '#ababab',
- globalStatus: 'closed'
- }]
- },
- loggedUser: { // @FIXME this object is outdated
- user_id: 5,
- username: 'Smoi',
- firstname: 'Côme',
- lastname: 'Stoilenom',
- email: 'osef@algoo.fr',
- avatar_url: 'https://avatars3.githubusercontent.com/u/11177014?s=460&v=4'
- },
- content: {
- author: {
- avatar_url: null,
- public_name: 'Global manager',
- user_id: 1 // -1 or 1 for debug
- },
- content_id: 22, // 1 or 22 for debug
- content_type: 'html-documents',
- created: '2018-06-18T14:59:26Z',
- current_revision_id: 11,
- is_archived: false,
- is_deleted: false,
- label: 'Current Menu',
- last_modifier: {
- avatar_url: null,
- public_name: 'Global manager',
- user_id: 1
- },
- modified: '2018-06-18T14:59:26Z',
- parent_id: 2,
- raw_content: '<div>bonjour, je suis un lapin.</div>',
- show_in_ui: true,
- slug: 'current-menu',
- status: 'open',
- sub_content_types: ['thread', 'html-documents', 'file', 'folder'],
- workspace_id: 1
- },
- timeline: timelineDebugData
- }
|