init.agi 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. ArozOS Office Suite - Module Register Script
  3. Registers three webapps (Docs, Sheets, Slides) that live inside the
  4. shared src/web/Office/ folder. All three share the resources under
  5. Office/common/ (framework, chrome CSS, chart renderer, vendored libs
  6. and the AGI file-saver backend).
  7. File formats: each app saves straight into the Office format of its
  8. kind, with the editor's own copy embedded in the package so the suite
  9. reopens exactly what it saved (mod/office native.go):
  10. .docx - Docs (word processor document)
  11. .xlsx - Sheets (spreadsheet workbook)
  12. .pptx - Slides (presentation)
  13. and opens the OpenDocument and text formats besides, plus the Office
  14. 97-2003 formats (.doc / .xls / .ppt), which are converted into the
  15. app's own format when they are opened (mod/office/doc, xls, ppt).
  16. */
  17. //Docs - word processor
  18. registerModule(JSON.stringify({
  19. Name: "Docs",
  20. Desc: "ArozOS Office word processor",
  21. Group: "Office",
  22. IconPath: "Office/docs/docs.png",
  23. Version: "1.0",
  24. StartDir: "Office/docs/index.html",
  25. SupportFW: true,
  26. LaunchFWDir: "Office/docs/index.html",
  27. SupportEmb: true,
  28. LaunchEmb: "Office/docs/index.html",
  29. // the window opens at the size of the start-up splash and grows to
  30. // 1080x700 once the document is ready (common/splash.js, data-size)
  31. InitFWSize: [480, 320],
  32. InitEmbSize: [480, 320],
  33. SupportedExt: [".docx", ".odt", ".doc", ".dot"]
  34. }));
  35. //Sheets - spreadsheet
  36. registerModule(JSON.stringify({
  37. Name: "Sheets",
  38. Desc: "ArozOS Office spreadsheet",
  39. Group: "Office",
  40. IconPath: "Office/sheets/sheets.png",
  41. Version: "1.0",
  42. StartDir: "Office/sheets/index.html",
  43. SupportFW: true,
  44. LaunchFWDir: "Office/sheets/index.html",
  45. SupportEmb: true,
  46. LaunchEmb: "Office/sheets/index.html",
  47. // splash-sized, grows to 1180x720 when ready (common/splash.js)
  48. InitFWSize: [480, 320],
  49. InitEmbSize: [480, 320],
  50. SupportedExt: [".xlsx", ".ods", ".csv", ".tsv", ".xls", ".xlt"]
  51. }));
  52. //Slides - presentation
  53. registerModule(JSON.stringify({
  54. Name: "Slides",
  55. Desc: "ArozOS Office presentation editor",
  56. Group: "Office",
  57. IconPath: "Office/slides/slides.png",
  58. Version: "1.0",
  59. StartDir: "Office/slides/index.html",
  60. SupportFW: true,
  61. LaunchFWDir: "Office/slides/index.html",
  62. SupportEmb: true,
  63. LaunchEmb: "Office/slides/index.html",
  64. // splash-sized, grows to 1220x740 when ready (common/splash.js)
  65. InitFWSize: [480, 320],
  66. InitEmbSize: [480, 320],
  67. SupportedExt: [".pptx", ".odp", ".ppt", ".pot", ".pps"]
  68. }));