OSDN Git Service

fix remove tree
[pettanr/pettanr.git] / app / assets / javascripts / manifest / work / models.js.coffee.erb
index e201771..5ba5d44 100644 (file)
         },\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_author: {\r
-        type: 'filter',\r
-        args: {\r
-        },\r
-      },\r
-      by_panel: {\r
-        type: 'through_filter',\r
-        args: {\r
-          through: 'scroll_panels',\r
-        },\r
-      },\r
-      play: {\r
-        type: 'play',\r
-        args: {\r
-          filter_item_name: 'scroll',\r
-          filter_model_name: 'scroll_panel',\r
-          filter_key: 'scroll_id',\r
-        },\r
-      },\r
+    tree: {\r
+      scroll_owner: 'author',\r
     },\r
   },\r
   scroll_panel: {\r
     },\r
     tree: {\r
       owner: 'scroll',\r
-    },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_scroll: {\r
-        type: 'filter',\r
-      },\r
-      by_panel: {\r
-        type: 'filter',\r
-      },\r
+      scroll_owner: 'scroll',\r
     },\r
   },\r
   comic: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_author: {\r
-        type: 'filter',\r
-      },\r
+    tree: {\r
+      comic_owner: 'author',\r
     },\r
   },\r
   story: {\r
     },\r
     tree: {\r
       owner: 'comic',\r
-    },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_comic: {\r
-        type: 'filter',\r
-      },\r
-      by_sheet: {\r
-        type: 'through_filter',\r
-        args: {\r
-          through: 'story_sheets',\r
-        },\r
-      },\r
-      by_author: {\r
-        type: 'foreign_filter',\r
-      },\r
-      play: {\r
-        type: 'play',\r
-      },\r
+      comic_owner: 'comic',\r
     },\r
   },\r
   story_sheet: {\r
     },\r
     tree: {\r
       owner: 'story',\r
-    },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_story: {\r
-        type: 'filter',\r
-      },\r
-      by_sheet: {\r
-        type: 'filter',\r
-      },\r
+      comic_owner: 'story',\r
     },\r
   },\r
   sheet: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_story: {\r
-        type: 'through_filter',\r
-        args: {\r
-          through: 'story_sheets',\r
-        },\r
-      },\r
-      by_panel: {\r
-        type: 'through_filter',\r
-        args: {\r
-          through: 'sheet_panels',\r
-        },\r
-      },\r
-      by_author: {\r
-        type: 'filter',\r
-      },\r
-      play: {\r
-        type: 'play',\r
-      },\r
+    tree: {\r
+      sheet_owner: 'author',\r
     },\r
   },\r
   sheet_panel: {\r
     },\r
     tree: {\r
       owner: 'sheet',\r
-    },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_sheet: {\r
-        type: 'filter',\r
-      },\r
-      by_panel: {\r
-        type: 'filter',\r
-      },\r
+      sheet_owner: 'sheet',\r
     },\r
   },\r
   panel: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_scroll: {\r
-        type: 'through_filter',\r
-        args: {\r
-          through: 'scroll_panels',\r
-        },\r
-      },\r
-      by_sheet: {\r
-        type: 'through_filter',\r
-        args: {\r
-          through: 'sheet_panels',\r
-        },\r
-      },\r
-      by_author: {\r
-        type: 'filter',\r
-      },\r
-      by_speech_balloon_template: {\r
-        type: 'through_filter',\r
-      },\r
+    tree: {\r
+      panel_owner: 'author',\r
     },\r
   },\r
   panel_picture: {\r
     },\r
     tree: {\r
       owner: 'panel',\r
+      panel_owner: 'panel',\r
       panel: 'panel',\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_panel: {\r
-        type: 'filter',\r
-        args: {\r
-          where_name: 'public_list_where',\r
-        },\r
-      },\r
-      by_author: {\r
-        type: 'foreign_filter',\r
-        args: {\r
-          tree_name: 'owner',\r
-        },\r
-      },\r
-    },\r
   },\r
   speech_balloon: {\r
-    extend: 'classname', \r
+    extend_column_name: 'classname', \r
     associations: {\r
       belongs_to: {\r
         panel: {\r
     },\r
     tree: {\r
       owner: 'panel',\r
+      panel_owner: 'panel',\r
       panel: 'panel',\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_panel: {\r
-        type: 'filter',\r
-      },\r
-      by_speech_balloon_template: {\r
-        type: 'filter',\r
-      },\r
-      by_author: {\r
-        type: 'foreign_filter',\r
-      },\r
-    },\r
   }, \r
   balloon: {\r
     associations: {\r
     },\r
     tree: {\r
       owner: 'speech_balloon',\r
+      panel_owner: 'speech_balloon',\r
       panel: 'speech_balloon',\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_panel: {\r
-        type: 'filter',\r
-      },\r
-      by_speech_balloon: {\r
-        type: 'filter',\r
-      },\r
-      by_author: {\r
-        type: 'foreign_filter',\r
-      },\r
-    },\r
   },\r
   speech: {\r
     associations: {\r
     },\r
     tree: {\r
       owner: 'speech_balloon',\r
+      panel_owner: 'speech_balloon',\r
       panel: 'speech_balloon',\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      by_speech_balloon: {\r
-        type: 'filter',\r
-      },\r
-      by_writing_format: {\r
-        type: 'filter',\r
-      },\r
-    },\r
   },\r
   ground_picture: {\r
     associations: {\r
     },\r
     tree: {\r
       owner: 'panel',\r
+      panel_owner: 'panel',\r
       panel: 'panel',\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_panel: {\r
-        type: 'filter',\r
-      },\r
-      by_author: {\r
-        type: 'foreign_filter',\r
-      },\r
-    },\r
   },\r
   ground_color: {\r
     associations: {\r
     },\r
     tree: {\r
       owner: 'panel',\r
+      panel_owner: 'panel',\r
       panel: 'panel',\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_panel: {\r
-        type: 'filter',\r
-      },\r
-      by_author: {\r
-        type: 'foreign_filter',\r
-      },\r
-    },\r
   },\r
   original_picture: {\r
     associations: {\r
         type: 'datetime',\r
       },\r
     },\r
-    lists: {\r
-      private: {\r
-        type: 'private',\r
-      },\r
-    },\r
   },\r
   picture: {\r
     associations: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      private: {\r
-        type: 'private',\r
-      },\r
-      by_original_picture: {\r
-        type: 'filter',\r
-      },\r
-      by_license: {\r
-        type: 'filter',\r
-      },\r
-      by_artist: {\r
-        type: 'filter',\r
-      },\r
-    },\r
   },\r
   speech_balloon_template: {\r
+    extend_column_name: 'classname', \r
     associations: {\r
       belongs_to: {\r
         system_picture: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      select_items: {\r
-        type: 'system_resource',\r
-        args: {\r
-          select_item_name: 'panel_visible_items',\r
-        },\r
-      },\r
-    },\r
   },\r
   writing_format: {\r
+    extend_column_name: 'classname', \r
     associations: {\r
       belongs_to: {\r
         system_picture: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      select_items: {\r
-        type: 'system_resource',\r
-      },\r
-      by_system_picture: {\r
-        type: 'filter',\r
-      },\r
-    },\r
   },\r
   license_group: {\r
+    extend_column_name: 'classname', \r
     associations: {\r
       belongs_to: {\r
       },\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      select_items: {\r
-        type: 'system_resource',\r
-      },\r
-    },\r
   },\r
   license: {\r
     associations: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-      by_license_group: {\r
-        type: 'filter',\r
-      },\r
-      by_system_picture: {\r
-        type: 'filter',\r
-      },\r
-    },\r
   },\r
   author: {\r
     associations: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-    },\r
   },\r
   artist: {\r
     associations: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-    },\r
   },\r
   system_picture: {\r
     associations: {\r
         }\r
       },\r
     },\r
-    lists: {\r
-      public: {\r
-        type: 'public',\r
-      },\r
-    },\r
   },\r
 }\r
 \r