From 6402bc9f82e85f4bfcaccd02269e6dec4131a643 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Sun, 7 Apr 2013 20:37:31 +0100 Subject: [PATCH] Remove remnants of Typus. --- config/typus/README | 68 ------------------------------ config/typus/application.yml | 33 --------------- config/typus/application_roles.yml | 8 ---- config/typus/typus.yml | 17 -------- config/typus/typus_roles.yml | 6 --- 5 files changed, 132 deletions(-) delete mode 100644 config/typus/README delete mode 100644 config/typus/application.yml delete mode 100644 config/typus/application_roles.yml delete mode 100644 config/typus/typus.yml delete mode 100644 config/typus/typus_roles.yml diff --git a/config/typus/README b/config/typus/README deleted file mode 100644 index 9da0243..0000000 --- a/config/typus/README +++ /dev/null @@ -1,68 +0,0 @@ -# Models - -This is an example of a **Typus** enabled model with all available options. You -can use this example to customize your YAML files which only have set the most -common settings. - - Post: - fields: - default: id, title, category_id, created_at, is_published? - list: id, title, category_id, created_at, is_published? - form: title, body, is_published?, created_at - show: title, category, is_published? - relationship: title, status - options: - auto_generated: - booleans: - is_published: ["Yes, it is", "No, it isn't"] - date_formats: - created_at: post_long - selectors: - read_only: - filter_by_date_range: valid_until - templates: - body: rich_text - actions: - index: cleanup - edit: send_as_newsletter - show: rebuild - export: csv, xml - order_by: created_at - relationships: - filters: is_published?, created_at, category_id - search: title, body - application: Application - description: Some text to describe the model - options: - action_after_save: index - default_action_on_item: show - end_year: 2015 - form_rows: 25 - minute_step: 15 - nil: 'nil' - only_user_items: true - per_page: 5 - start_year: 1990 - -Note: To define namespace models use :: as a separator. (i.e. Delayed::Job) - -# Roles - -In this file you can configure the actions available for each of your models on -the application. You can also use the 'all' shortcut to allow the user the -access to all actions. - - admin: - Post: create, read, update, delete - Category: create, read, update, delete - TypusUser: all - - editor: - Post: create, read, update - Category: read, update - -You can also define `resources` which are not related to a model, for example -to control `Redis`. - - admin: - Redis: index, flush_all diff --git a/config/typus/application.yml b/config/typus/application.yml deleted file mode 100644 index 0b6dd8b..0000000 --- a/config/typus/application.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Typus Models Configuration File -# -# Use the README file as a reference to customize settings. - -Category: - fields: - default: name, photo_id, base_colour, sort - form: name, description, photo_id, base_colour, sort - order_by: - relationships: photos - filters: - search: name - application: Photos - -Photo: - fields: - default: photo, title, enabled, featured, views - form: photo, title, description, flickr_url, enabled, featured, sort - order_by: - relationships: categories - filters: - search: title - application: Photos - -Page: - fields: - default: name, title - form: name, title, content - order_by: - relationships: - filters: - search: title - application: Photos diff --git a/config/typus/application_roles.yml b/config/typus/application_roles.yml deleted file mode 100644 index 3ff9f28..0000000 --- a/config/typus/application_roles.yml +++ /dev/null @@ -1,8 +0,0 @@ -# Typus Roles Configuration File -# -# Use the README file as a reference to customize settings. - -admin: - Category: create, read, update, delete - Photo: create, read, update, delete - Page: create, read, update, delete diff --git a/config/typus/typus.yml b/config/typus/typus.yml deleted file mode 100644 index 82c4cc9..0000000 --- a/config/typus/typus.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Typus Models Configuration File -# -# Use the README file as a reference to customize settings. - -AdminUser: - fields: - default: first_name, last_name, role, email, language - list: email, role, status - form: first_name, last_name, role, email, password, password_confirmation, language - options: - selectors: role, language - booleans: - status: Active, Inactive - filters: status, role - search: first_name, last_name, email, role - application: Admin Panel - description: Users Administration diff --git a/config/typus/typus_roles.yml b/config/typus/typus_roles.yml deleted file mode 100644 index 6c2facf..0000000 --- a/config/typus/typus_roles.yml +++ /dev/null @@ -1,6 +0,0 @@ -# Typus Roles Configuration File -# -# Use the README file as a reference to customize settings. - -admin: - AdminUser: all