Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-6156

Split Spreadsheet block JS/CSS code

    XporterXMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Should have
    • Resolution: Merged
    • Affects Version/s: None
    • Fix Version/s: 2.57.0
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      Sprint #161
    • Section:
      Block: Spreadsheet
    • P4 site:
      All sites
    • Track:
      Development
    • P4 Test Environment:
      oberon
    • Repositories:
      planet4-plugin-gutenberg-blocks

      Description

      Following https://jira.greenpeace.org/browse/PLANET-4535 (based on https://jira.greenpeace.org/browse/PLANET-4534),
      split/reorganize Spreadsheet block scripts in assets/src/blocks/{Blockname}  and assets/src/styles/blocks/{Blockname} to this structure :

      • assets/src/blocks/{Blockname}/{Blockname}Script.js instantiates a block on the frontend side
      • assets/src/blocks/{Blockname}/{Blockname}EditorScript.js instantiates a block editor, in the gutenberg editor
      • assets/src/styles/blocks/{Blockname}/{Blockname}Style.scss is used to style the block on frontend
      • assets/src/styles/blocks/{Blockname}/{Blockname}EditorStyle.scss is used for editor specific styles

      A generic method you can follow is available in this PR https://github.com/greenpeace/planet4-plugin-gutenberg-blocks/pull/591#user-content-genericmethod

       

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                fhernand Florent Hernandez
                Reporter:
                fhernand Florent Hernandez
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: