Browse Source

feat: remove document.json from repo

Vincent Chan 2 năm trước cách đây
mục cha
commit
0def9e8882

+ 0 - 245
frontend/app_flowy/packages/flowy_editor/example/assets/document.json

@@ -1,245 +0,0 @@
-{
-  "document": {
-    "type": "editor",
-    "attributes": {},
-    "children": [
-      {
-        "type": "image",
-        "attributes": {
-          "image_src": "https://images.squarespace-cdn.com/content/v1/617f6f16b877c06711e87373/c3f23723-37f4-44d7-9c5d-6e2a53064ae7/Asset+10.png?format=1500w"
-        }
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "👋 Welcome to AppFlowy!",
-            "attributes": {
-              "href": "https://www.appflowy.io/",
-              "heading": "h1"
-            }
-          }
-        ],
-        "attributes": {
-          "heading": "h1"
-        }
-      },
-      {
-        "type": "text",
-        "delta": [
-          { "insert": "Here are the basics", "attributes": { "heading": "h2" } }
-        ],
-        "attributes": {
-          "heading": "h2"
-        }
-      },
-      {
-        "type": "text",
-        "delta": [{ "insert": "Click anywhere and just start typing." }],
-        "attributes": {
-          "list": "todo",
-          "todo": false
-        }
-      },
-      {
-        "type": "text",
-        "delta": [{ "insert": "Click anywhere and just start typing." }],
-        "attributes": {
-          "list": "bullet"
-        }
-      },
-      {
-        "type": "text",
-        "delta": [{ "insert": "Click anywhere and just start typing." }],
-        "attributes": {
-          "list": "bullet"
-        }
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "Highlight",
-            "attributes": { "highlight": "0xFFFFFF00" }
-          },
-          { "insert": " Click anywhere and just start typing" },
-          { "insert": " any text, and use the menu at the bottom to " },
-          { "insert": "style", "attributes": { "italic": true } },
-          { "insert": " your ", "attributes": { "bold": true } },
-          { "insert": "writing", "attributes": { "underline": true } },
-          {
-            "insert": " however you like.",
-            "attributes": { "strikethrough": true }
-          }
-        ],
-        "attributes": {
-          "checkbox": false
-        }
-      },
-      {
-        "type": "text",
-        "delta": [
-          { "insert": "Have a question? ", "attributes": { "heading": "h2" } }
-        ],
-        "attributes": {
-          "heading": "h2"
-        }
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "1. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {
-          "quotes": true
-        }
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "2. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "3. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "4. Click the '?' at the bottom right for help and support.Click the '?' at the bottom right for help and support.Click the '?' at the bottom right for help and support.Click the '?' at the bottom right for help and support.Click the '?' at the bottom right for help and support.Click the '?' at the bottom right for help and support.Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "5. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "6. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "7. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "8. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "9. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "10. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "11. Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      },
-      {
-        "type": "text",
-        "delta": [
-          {
-            "insert": "Click the '?' at the bottom right for help and support."
-          }
-        ],
-        "attributes": {}
-      }
-    ]
-  }
-}

+ 1 - 4
frontend/app_flowy/packages/flowy_editor/example/pubspec.yaml

@@ -3,7 +3,7 @@ description: A new Flutter project.
 
 
 # The following line prevents the package from being accidentally published to
 # The following line prevents the package from being accidentally published to
 # pub.dev using `flutter pub publish`. This is preferred for private packages.
 # pub.dev using `flutter pub publish`. This is preferred for private packages.
-publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+publish_to: "none" # Remove this line if you wish to publish to pub.dev
 
 
 # The following defines the version and build number for your application.
 # The following defines the version and build number for your application.
 # A version number is three numbers separated by dots, like 1.2.43
 # A version number is three numbers separated by dots, like 1.2.43
@@ -30,7 +30,6 @@ dependencies:
   flutter:
   flutter:
     sdk: flutter
     sdk: flutter
 
 
-
   # The following adds the Cupertino Icons font to your application.
   # The following adds the Cupertino Icons font to your application.
   # Use with the CupertinoIcons class for iOS style icons.
   # Use with the CupertinoIcons class for iOS style icons.
   cupertino_icons: ^1.0.2
   cupertino_icons: ^1.0.2
@@ -58,7 +57,6 @@ dev_dependencies:
 
 
 # The following section is specific to Flutter packages.
 # The following section is specific to Flutter packages.
 flutter:
 flutter:
-
   # The following line ensures that the Material Icons font is
   # The following line ensures that the Material Icons font is
   # included with your application, so that you can use the icons in
   # included with your application, so that you can use the icons in
   # the material Icons class.
   # the material Icons class.
@@ -66,7 +64,6 @@ flutter:
 
 
   # To add assets to your application, add an assets section, like this:
   # To add assets to your application, add an assets section, like this:
   assets:
   assets:
-    - document.json
     - example.json
     - example.json
     - big_document.json
     - big_document.json
   #   - images/a_dot_ham.jpeg
   #   - images/a_dot_ham.jpeg

+ 0 - 1
frontend/app_flowy/packages/flowy_editor/pubspec.yaml

@@ -31,7 +31,6 @@ flutter:
     - assets/images/toolbar/
     - assets/images/toolbar/
     - assets/images/popup_list/
     - assets/images/popup_list/
     - assets/images/
     - assets/images/
-    - assets/document.json
   #   - images/a_dot_burr.jpeg
   #   - images/a_dot_burr.jpeg
   #   - images/a_dot_ham.jpeg
   #   - images/a_dot_ham.jpeg
   #
   #