static_db.json 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. {
  2. "lang": [{
  3. "id": "fr",
  4. "name": "Français",
  5. "src": "https://upload.wikimedia.org/wikipedia/commons/c/c3/Flag_of_France.svg",
  6. "active": true
  7. }, {
  8. "id": "en",
  9. "name": "English",
  10. "src": "https://upload.wikimedia.org/wikipedia/commons/a/ae/Flag_of_the_United_Kingdom.svg",
  11. "active": false
  12. }],
  13. "user_logged": {
  14. "logged": true,
  15. "user": {
  16. "id": 5,
  17. "username": "Smoi",
  18. "firstname": "Côme",
  19. "lastname": "Stoilenom",
  20. "email": "osef@algoo.fr",
  21. "avatar": "https://avatars3.githubusercontent.com/u/11177014?s=460&v=4",
  22. "role": "Utilisateur",
  23. "job": "Integrateur | Webdesigner",
  24. "company": "Algoo",
  25. "caldav_url": "http://algoo.trac.im/caldav/user/5.ics/"
  26. }
  27. },
  28. "app_config": [{
  29. "name": "PageHtml",
  30. "label": {
  31. "fr": "Page Html",
  32. "en": "Html page"
  33. },
  34. "componentLeft": "PageHtml",
  35. "componentRight": "Timeline",
  36. "customClass": "wsContentPageHtml",
  37. "icon": "fa fa-fw fa-file-word-o",
  38. "color": "#65c7f2",
  39. "domContainer": "appContainer"
  40. }, {
  41. "name": "PageMarkdown",
  42. "label": {
  43. "fr": "Page Markdown",
  44. "en": "Markdown page"
  45. },
  46. "componentLeft": "PageMarkdown",
  47. "componentRight": "undefined",
  48. "customClass": "wsContentPageMarkdown",
  49. "icon": "fa fa-fw fa-file-code-o",
  50. "color": "#e0082b",
  51. "domContainer": "appContainer"
  52. }, {
  53. "name": "File",
  54. "label": {
  55. "fr": "Fichier",
  56. "en": "File"
  57. },
  58. "componentLeft": "File",
  59. "componentRight": "undefined",
  60. "customClass": "wsContentFile",
  61. "icon": "fa fa-fw fa-file-text-o",
  62. "color": "#263462",
  63. "domContainer": "appContainer"
  64. }, {
  65. "name": "Thread",
  66. "label": {
  67. "fr": "Discussion",
  68. "en": "Thread"
  69. },
  70. "componentLeft": "Thread",
  71. "componentRight": "undefined",
  72. "customClass": "wsContentThread",
  73. "icon": "fa fa-fw fa-comments-o",
  74. "color": "#2674d3",
  75. "domContainer": "appContainer"
  76. }, {
  77. "name": "Task",
  78. "label": {
  79. "fr": "Tâche",
  80. "en": "Task"
  81. },
  82. "componentLeft": "Task",
  83. "componentRight": "undefined",
  84. "customClass": "wsContentTask",
  85. "icon": "fa fa-fw fa-list-ul",
  86. "color": "#2d5a88",
  87. "domContainer": "appContainer"
  88. }, {
  89. "name": "Issue",
  90. "label": {
  91. "fr": "Ticket",
  92. "en": "Issue"
  93. },
  94. "componentLeft": "Issue",
  95. "componentRight": "undefined",
  96. "customClass": "wsContentIssue",
  97. "icon": "fa fa-fw fa-ticket",
  98. "color": "#a4835e",
  99. "domContainer": "appContainer"
  100. }],
  101. "workspace_detail": {
  102. "id": 1,
  103. "title": "Mission interne - développement",
  104. "owner_id": 5,
  105. "content": [
  106. {
  107. "id": 1,
  108. "parent_id": null,
  109. "workspace_id": 1,
  110. "title": "Design v2",
  111. "type": "PageHtml",
  112. "status": "validated"
  113. },
  114. {
  115. "id": 2,
  116. "parent_id": null,
  117. "workspace_id": 1,
  118. "title": "La programmation fonctionnelle est-elle vraiment utile ?",
  119. "type": "Thread",
  120. "status": "current"
  121. },
  122. {
  123. "id": 6,
  124. "parent_id": null,
  125. "workspace_id": 1,
  126. "title": "Une photo",
  127. "type": "File",
  128. "status": "current"
  129. },
  130. {
  131. "id": 10,
  132. "parent_id": null,
  133. "workspace_id": 1,
  134. "title": "README.md de tracim_lib",
  135. "type": "PageMarkdown",
  136. "status": "current"
  137. },
  138. {
  139. "id": 7,
  140. "parent_id": null,
  141. "workspace_id": 1,
  142. "title": "Etape d'installation de Tracim",
  143. "type": "Task",
  144. "status": "current"
  145. },
  146. {
  147. "id": 8,
  148. "parent_id": null,
  149. "workspace_id": 1,
  150. "title": "Fixe du fichier css",
  151. "type": "Issue",
  152. "status": "current"
  153. },
  154. {
  155. "id": 3,
  156. "parent_id": null,
  157. "workspace_id": 1,
  158. "title": "Programmation objet",
  159. "type": "folder",
  160. "allowed_app": ["PageHtml", "Thread", "File", "PageMarkdown", "Task", "Issue"],
  161. "content": []
  162. }
  163. ]
  164. },
  165. "folder_content_3": [
  166. {
  167. "id": 4,
  168. "parent_id": 3,
  169. "workspace_id": 1,
  170. "title": "Backend appli n°578",
  171. "type": "File",
  172. "status": "outdated"
  173. },
  174. {
  175. "id": 5,
  176. "parent_id": 3,
  177. "workspace_id": 1,
  178. "title": "La programmation fonctionnelle",
  179. "type": "PageHtml",
  180. "status": "outdated"
  181. },
  182. {
  183. "id": 11,
  184. "parent_id": 3,
  185. "workspace_id": 1,
  186. "title": "ticket à fixe",
  187. "type": "folder",
  188. "allowed_app": ["PageHtml", "Thread", "File", "PageMarkdown", "Task", "Issue"],
  189. "content": []
  190. }
  191. ],
  192. "folder_content_11": [
  193. {
  194. "id": 12,
  195. "parent_id": 11,
  196. "workspace_id": 1,
  197. "title": "ticket à fixe",
  198. "type": "PageHtml",
  199. "status": "current"
  200. },
  201. {
  202. "id": 13,
  203. "parent_id": 11,
  204. "workspace_id": 1,
  205. "title": "issue n°555",
  206. "type": "Issue",
  207. "status": "current"
  208. }
  209. ],
  210. "timeline": [{
  211. "id": 0,
  212. "type": "message",
  213. "author": {
  214. "id": 5,
  215. "username": "Stoi",
  216. "avatar": "https://avatars3.githubusercontent.com/u/11177014?s=460&v=4"
  217. },
  218. "createdAt": {
  219. "day": "27/11/17",
  220. "hour": "11h45"
  221. },
  222. "text": "Proident esse laboris in sed officia exercitation ut anim ea."
  223. }, {
  224. "id": 1,
  225. "type": "message",
  226. "author": {
  227. "id": 1,
  228. "username": "smoi",
  229. "avatar": "https://www.algoo.fr/static/images/algoo_images/algoo-logo.jpg"
  230. },
  231. "createdAt": {
  232. "day": "27/11/16",
  233. "hour": "10h30"
  234. },
  235. "text": "Proident esse laboris in sed officia exercitation ut anim ea. in sed officia exercitation ut"
  236. }, {
  237. "id": 2,
  238. "type": "message",
  239. "author": {
  240. "id": 1,
  241. "username": "smoi",
  242. "avatar": "https://www.algoo.fr/static/images/algoo_images/algoo-logo.jpg"
  243. },
  244. "createdAt": {
  245. "day": "27/11/15",
  246. "hour": "10h30"
  247. },
  248. "text": "Proident esse laboris in sed officia exercitation ut anim ea. Proident esse laboris in sed officia exercitation ut anim ea. Proident esse laboris in sed officia exercitation ut anim ea."
  249. }, {
  250. "id": 3,
  251. "type": "version",
  252. "author": {
  253. "id": 1,
  254. "username": "smoi",
  255. "avatar": "https://www.algoo.fr/static/images/algoo_images/algoo-logo.jpg"
  256. },
  257. "createdAt": {
  258. "day": "27/11/11"
  259. },
  260. "number": "5"
  261. }],
  262. "content_data_pageHtml": {
  263. "id": "1",
  264. "type": "pageHtml",
  265. "title": "La programmation fonctionnelle",
  266. "status": "validated",
  267. "version": "3",
  268. "text": "<h1>Mon titre nul</h1>Je suis le contenu de cette fameuse <b>page HTML</b><br /> sur la programmation fonctionnelle",
  269. "workspace": {
  270. "id": 1,
  271. "title": "Mission interne - développement",
  272. "owner_id": 5
  273. }
  274. },
  275. "content_data_thread": {
  276. "id": 2,
  277. "type": "thread",
  278. "title": "La programmation fonctionnelle est-elle vraiment utile ?",
  279. "status": "validated",
  280. "message_list": [{
  281. "id": 0,
  282. "author": {
  283. "id": 5,
  284. "username": "Peter",
  285. "avatar": "https://avatars3.githubusercontent.com/u/1104637?s=460&v=4"
  286. },
  287. "text": "Tu aurais envie de manger quoi exactement ?",
  288. "createdAt": {
  289. "day": "05/03/18",
  290. "hour": "10h00"
  291. }
  292. }, {
  293. "id": 1,
  294. "author": {
  295. "id": 3,
  296. "username": "Steven",
  297. "avatar": "https://avatars3.githubusercontent.com/u/705214?s=460&v=4"
  298. },
  299. "createdAt": {
  300. "day": "05/03/18",
  301. "hour": "09h59"
  302. },
  303. "text": "Ben je sais pas, par exemple une quiche lorraine."
  304. }, {
  305. "id": 2,
  306. "author": {
  307. "id": 5,
  308. "username": "Peter",
  309. "avatar": "https://avatars3.githubusercontent.com/u/1104637?s=460&v=4"
  310. },
  311. "text": "Une ouiche.",
  312. "createdAt": {
  313. "day": "05/03/18",
  314. "hour": "09h59"
  315. }
  316. }, {
  317. "id": 3,
  318. "author": {
  319. "id": 3,
  320. "username": "Steven",
  321. "avatar": "https://avatars3.githubusercontent.com/u/705214?s=460&v=4"
  322. },
  323. "createdAt": {
  324. "day": "05/03/18",
  325. "hour": "09h59"
  326. },
  327. "text": "Quoi ?"
  328. }, {
  329. "id": 4,
  330. "author": {
  331. "id": 5,
  332. "username": "Peter",
  333. "avatar": "https://avatars3.githubusercontent.com/u/1104637?s=460&v=4"
  334. },
  335. "text": "On dit « une ouiche lorraine ».",
  336. "createdAt": {
  337. "day": "05/03/18",
  338. "hour": "09h59"
  339. }
  340. }, {
  341. "id": 5,
  342. "author": {
  343. "id": 3,
  344. "username": "Steven",
  345. "avatar": "https://avatars3.githubusercontent.com/u/705214?s=460&v=4"
  346. },
  347. "createdAt": {
  348. "day": "05/03/18",
  349. "hour": "09h58"
  350. },
  351. "text": "Tu es sûr ?"
  352. }, {
  353. "id": 6,
  354. "author": {
  355. "id": 3,
  356. "username": "Steven",
  357. "avatar": "https://avatars3.githubusercontent.com/u/705214?s=460&v=4"
  358. },
  359. "text": "Ça fait bizarre, « ouiche lorraine ».",
  360. "createdAt": {
  361. "day": "05/03/18",
  362. "hour": "09h59"
  363. }
  364. }]
  365. },
  366. "workspace_list": [{
  367. "id": 0,
  368. "title": "Ressources humaine"
  369. }, {
  370. "id": 1,
  371. "title": "Marketing"
  372. }, {
  373. "id": 2,
  374. "title": "Missions externes"
  375. }, {
  376. "id": 3,
  377. "title": "Recherche et développement"
  378. }, {
  379. "id": 4,
  380. "title": "Commercialisation"
  381. }, {
  382. "id": 5,
  383. "title": "Évolutions"
  384. }],
  385. "user_role": [{
  386. "workspace": {
  387. "id": 0,
  388. "title": "Ressources humaine"
  389. },
  390. "role": "reader",
  391. "subscribed_to_notif": true
  392. }, {
  393. "workspace": {
  394. "id": 1,
  395. "title": "Marketing"
  396. },
  397. "role": "manager",
  398. "subscribed_to_notif": true
  399. }, {
  400. "workspace": {
  401. "id": 2,
  402. "title": "Missions externes"
  403. },
  404. "role": "contributor",
  405. "subscribed_to_notif": false
  406. }, {
  407. "workspace": {
  408. "id": 3,
  409. "title": "Recherche et développement"
  410. },
  411. "role": "content_manager",
  412. "subscribed_to_notif": true
  413. }, {
  414. "workspace": {
  415. "id": 4,
  416. "title": "Commercialisation"
  417. },
  418. "role": "reader",
  419. "subscribed_to_notif": false
  420. }, {
  421. "workspace": {
  422. "id": 5,
  423. "title": "Évolutions"
  424. },
  425. "role": "content_manager",
  426. "subscribed_to_notif": true
  427. }]
  428. }