OSDN Git Service

t#32402:add file prof
[pettanr/pettanr.git] / app / helpers / application_helper.rb
index ce88098..6c04d1c 100644 (file)
@@ -90,7 +90,448 @@ module ApplicationHelper
   def configurations
     JSON.parse(<<HD
 {
+    "filers": {
+        "scroll": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "column",
+                "name": "title",
+                "link": {
+                    "type": "action",
+                    "name": "play"
+                }
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "default"
+            }
+        },
+        "scroll_panel": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png",
+                "link": {
+                    "type": "none"
+                }
+            },
+            "caption": {
+                "type": "none"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "comic": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "column",
+                "name": "title"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "default"
+            }
+        },
+        "story": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "method",
+                "name": "title_with_t",
+                "link": {
+                    "type": "action",
+                    "name": "play"
+                }
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "default"
+            }
+        },
+        "story_sheet": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png",
+                "link": {
+                    "type": "none"
+                }
+            },
+            "caption": {
+                "type": "none"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "sheet": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "column",
+                "name": "caption",
+                "link": {
+                    "type": "action",
+                    "name": "play"
+                }
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "default"
+            }
+        },
+        "sheet_panel": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png",
+                "link": {
+                    "type": "none"
+                }
+            },
+            "caption": {
+                "type": "none"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "panel": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "method",
+                "name": "plain_scenario",
+                "link": {
+                    "type": "none"
+                }
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "default"
+            }
+        },
+        "panel_picture": {
+            "symbol": {
+                "type": "picture",
+                "name": "symbol_option"
+            },
+            "caption": {
+                "type": "column",
+                "name": "caption"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "speech_balloon": {
+            "symbol": {
+                "type": "picture",
+                "name": "symbol_option"
+            },
+            "caption": {
+                "type": "method",
+                "name": "plain_scenario",
+                "link": {
+                    "type": "none"
+                }
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "speech": {
+            "symbol": {
+                "type": "picture",
+                "name": "symbol_option"
+            },
+            "caption": {
+                "type": "column",
+                "name": "content",
+                "link": {
+                    "type": "none"
+                }
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "balloon": {
+            "symbol": {
+                "type": "picture",
+                "name": "symbol_option"
+            },
+            "caption": {
+                "type": "none"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "ground_picture": {
+            "symbol": {
+                "type": "picture",
+                "name": "symbol_option"
+            },
+            "caption": {
+                "type": "column",
+                "name": "caption"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "ground_color": {
+            "symbol": {
+                "type": "template",
+                "name": "symbol"
+            },
+            "caption": {
+                "type": "column",
+                "name": "caption"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "original_picture": {
+            "symbol": {
+                "type": "picture",
+                "name": "symbol_option"
+            },
+            "caption": {
+                "type": "method",
+                "name": "revision",
+                "link": {
+                    "type": "action",
+                    "name": "history"
+                }
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "template",
+                "name": "publish"
+            }
+        },
+        "picture": {},
+        "resource_picture": {
+            "symbol": {
+                "type": "picture",
+                "name": "symbol_option"
+            },
+            "caption": {
+                "type": "none"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "speech_balloon_template": {
+            "symbol": {
+                "type": "picture",
+                "name": "symbol_option"
+            },
+            "caption": {
+                "type": "column",
+                "name": "caption"
+            },
+            "summary": {
+                "type": "none"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "writing_format": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "column",
+                "name": "caption"
+            },
+            "summary": {
+                "type": "none"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "license_group": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "column",
+                "name": "caption",
+                "link": {
+                    "type": "url_column",
+                    "name": "url"
+                }
+            },
+            "summary": {
+                "type": "none"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "license": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "method",
+                "name": "caption_with_group",
+                "link": {
+                    "type": "url_column",
+                    "name": "url"
+                }
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "none"
+            }
+        },
+        "author": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "column",
+                "name": "name"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "account"
+            }
+        },
+        "artist": {
+            "symbol": {
+                "type": "image",
+                "name": "/assets/item.png"
+            },
+            "caption": {
+                "type": "column",
+                "name": "name"
+            },
+            "summary": {
+                "type": "template",
+                "name": "summary"
+            },
+            "edit": {
+                "type": "account"
+            }
+        },
+        "system_picture": {
+            "symbol": {
+                "type": "picture",
+                "name": "symbol_option"
+            },
+            "caption": {
+                "type": "none"
+            },
+            "summary": {
+                "type": "none"
+            },
+            "edit": {
+                "type": "none"
+            }
+        }
+    },
     "models": {
+        "Sheet": "sheet",
+        "sheet": {
+            "class_name": "Sheet",
+            "table_name": "sheets",
+            "attributes": {
+                "id": {
+                    "type": "number",
+                    "primary_key": 1,
+                    "rules": {
+                        "number": true
+                    }
+                }
+            }
+        },
         "Panel": "panel",
         "panel": {
             "class_name": "Panel",