card 1.16.9 → 1.16.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/db/migrate_core_cards/20120611203506_rails_inflection_updates.rb +3 -1
- data/db/seed/new/card_actions.yml +389 -557
- data/db/seed/new/card_acts.yml +595 -1
- data/db/seed/new/card_changes.yml +22595 -7526
- data/db/seed/new/card_references.yml +379 -407
- data/db/seed/new/cards.yml +1694 -2072
- data/db/seed/test/fixtures/card_actions.yml +966 -1102
- data/db/seed/test/fixtures/card_acts.yml +1017 -399
- data/db/seed/test/fixtures/card_changes.yml +24750 -9681
- data/db/seed/test/fixtures/card_references.yml +603 -631
- data/db/seed/test/fixtures/cards.yml +2293 -2671
- data/lib/card/set.rb +1 -1
- data/mod/01_core/set/all/content.rb +14 -12
- data/mod/03_machines/lib/javascript/wagn_mod.js.coffee +1 -1
- data/mod/05_standard/set/abstract/attachment.rb +9 -9
- data/mod/05_standard/set/all/rich_html/content.rb +115 -103
- data/mod/05_standard/set/type/file.rb +1 -1
- data/tmpsets/set/mod001-01_core/all/active_card.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/collection.rb +3 -3
- data/tmpsets/set/mod001-01_core/all/content.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/erb.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/fetch.rb +169 -93
- data/tmpsets/set/mod001-01_core/all/haml.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/initialize.rb +11 -23
- data/tmpsets/set/mod001-01_core/all/name.rb +130 -80
- data/tmpsets/set/mod001-01_core/all/pattern.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/permissions.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/phases.rb +95 -96
- data/tmpsets/set/mod001-01_core/all/references.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/rules.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/states.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/templating.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/tracked_attributes.rb +85 -60
- data/tmpsets/set/mod001-01_core/all/trash.rb +16 -13
- data/tmpsets/set/mod001-01_core/all/type.rb +5 -25
- data/tmpsets/set/mod001-01_core/all/utils.rb +2 -1
- data/tmpsets/set/mod001-01_core/all/view_cache.rb +2 -1
- data/tmpsets/set/mod002-01_history/all/actions.rb +2 -1
- data/tmpsets/set/mod002-01_history/all/content_history.rb +7 -4
- data/tmpsets/set/mod002-01_history/all/history.rb +119 -83
- data/tmpsets/set/mod003-02_basic_types/all/all_css.rb +2 -1
- data/tmpsets/set/mod003-02_basic_types/all/all_csv.rb +2 -1
- data/tmpsets/set/mod003-02_basic_types/all/all_js.rb +2 -1
- data/tmpsets/set/mod003-02_basic_types/all/base.rb +52 -50
- data/tmpsets/set/mod003-02_basic_types/all/file.rb +2 -1
- data/tmpsets/set/mod003-02_basic_types/all/json.rb +2 -1
- data/tmpsets/set/mod003-02_basic_types/all/rss.rb +2 -1
- data/tmpsets/set/mod003-02_basic_types/all/text.rb +2 -1
- data/tmpsets/set/mod003-02_basic_types/type/html.rb +2 -1
- data/tmpsets/set/mod003-02_basic_types/type/plain_text.rb +2 -1
- data/tmpsets/set/mod003-02_basic_types/type/pointer.rb +10 -1
- data/tmpsets/set/mod004-03_machines/right/machine_input.rb +2 -1
- data/tmpsets/set/mod004-03_machines/right/machine_output.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/script_ace.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/script_card_menu.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/script_html5shiv_printshiv.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/script_jquery.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/script_jquery_helper.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/script_slot.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/script_tinymce.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/style_bootstrap_compatible.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/style_cards.rb +2 -1
- data/tmpsets/set/mod004-03_machines/self/style_jquery_ui_smoothness.rb +2 -1
- data/tmpsets/set/mod004-03_machines/type/coffee_script.rb +2 -1
- data/tmpsets/set/mod004-03_machines/type/css.rb +2 -1
- data/tmpsets/set/mod004-03_machines/type/java_script.rb +2 -1
- data/tmpsets/set/mod004-03_machines/type/scss.rb +2 -1
- data/tmpsets/set/mod004-03_machines/type/skin.rb +2 -1
- data/tmpsets/set/mod005-04_settings/abstract/permission.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/add_help.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/comment.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/create.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/default.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/delete.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/help.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/read.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/script.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/structure.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/style.rb +2 -1
- data/tmpsets/set/mod005-04_settings/right/update.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/accountable.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/add_help.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/autoname.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/captcha.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/create.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/default.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/delete.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/help.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/input.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/layout.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/on_create.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/on_delete.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/on_update.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/options.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/options_label.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/read.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/recent_settings.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/script.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/structure.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/style.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/table_of_contents.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/thanks.rb +2 -1
- data/tmpsets/set/mod005-04_settings/self/update.rb +2 -1
- data/tmpsets/set/mod005-04_settings/type/setting.rb +2 -1
- data/tmpsets/set/mod006-05_email/all/email_html.rb +2 -1
- data/tmpsets/set/mod006-05_email/all/email_text.rb +2 -1
- data/tmpsets/set/mod006-05_email/all/follow.rb +2 -1
- data/tmpsets/set/mod006-05_email/all/notify.rb +2 -1
- data/tmpsets/set/mod006-05_email/all/observer.rb +2 -1
- data/tmpsets/set/mod006-05_email/right/bcc.rb +2 -1
- data/tmpsets/set/mod006-05_email/right/cc.rb +2 -1
- data/tmpsets/set/mod006-05_email/right/follow.rb +2 -1
- data/tmpsets/set/mod006-05_email/right/follow_fields.rb +2 -1
- data/tmpsets/set/mod006-05_email/right/followers.rb +7 -6
- data/tmpsets/set/mod006-05_email/right/following.rb +3 -2
- data/tmpsets/set/mod006-05_email/right/from.rb +2 -1
- data/tmpsets/set/mod006-05_email/right/html_message.rb +2 -1
- data/tmpsets/set/mod006-05_email/right/to.rb +2 -1
- data/tmpsets/set/mod006-05_email/self/always.rb +2 -1
- data/tmpsets/set/mod006-05_email/self/created.rb +2 -1
- data/tmpsets/set/mod006-05_email/self/edited.rb +2 -1
- data/tmpsets/set/mod006-05_email/self/follow.rb +2 -1
- data/tmpsets/set/mod006-05_email/self/follow_defaults.rb +2 -1
- data/tmpsets/set/mod006-05_email/self/never.rb +2 -1
- data/tmpsets/set/mod006-05_email/type/email_template.rb +2 -1
- data/tmpsets/set/mod006-05_email/type_plus_right/user/follow.rb +3 -2
- data/tmpsets/set/mod007-05_standard/abstract/attachment.rb +22 -9
- data/tmpsets/set/mod007-05_standard/all/account.rb +2 -1
- data/tmpsets/set/mod007-05_standard/all/comment.rb +2 -1
- data/tmpsets/set/mod007-05_standard/all/error.rb +2 -1
- data/tmpsets/set/mod007-05_standard/all/event_viz.rb +2 -1
- data/tmpsets/set/mod007-05_standard/all/links.rb +2 -1
- data/tmpsets/set/mod007-05_standard/all/rich_html/content.rb +3 -2
- data/tmpsets/set/mod007-05_standard/all/rich_html/editing.rb +2 -1
- data/tmpsets/set/mod007-05_standard/all/rich_html/form.rb +23 -12
- data/tmpsets/set/mod007-05_standard/all/rich_html/header.rb +2 -1
- data/tmpsets/set/mod007-05_standard/all/rich_html/menu.rb +3 -2
- data/tmpsets/set/mod007-05_standard/all/rich_html/modal.rb +2 -1
- data/tmpsets/set/mod007-05_standard/all/rich_html/toolbar.rb +2 -1
- data/tmpsets/set/mod007-05_standard/all/rich_html/wrapper.rb +2 -1
- data/tmpsets/set/mod007-05_standard/right/account.rb +7 -6
- data/tmpsets/set/mod007-05_standard/right/discussion.rb +2 -1
- data/tmpsets/set/mod007-05_standard/right/email.rb +2 -1
- data/tmpsets/set/mod007-05_standard/right/password.rb +2 -1
- data/tmpsets/set/mod007-05_standard/right/salt.rb +2 -1
- data/tmpsets/set/mod007-05_standard/right/stats.rb +2 -1
- data/tmpsets/set/mod007-05_standard/right/status.rb +2 -1
- data/tmpsets/set/mod007-05_standard/right/token.rb +2 -1
- data/tmpsets/set/mod007-05_standard/right/when_created.rb +2 -1
- data/tmpsets/set/mod007-05_standard/right/when_last_edited.rb +2 -1
- data/tmpsets/set/mod007-05_standard/rstar/rules.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/account_links.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/alerts.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/all.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/foot.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/head.rb +2 -2
- data/tmpsets/set/mod007-05_standard/self/navbox.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/now.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/recent.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/search.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/signin.rb +45 -36
- data/tmpsets/set/mod007-05_standard/self/stats.rb +2 -1
- data/tmpsets/set/mod007-05_standard/self/version.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/basic.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/cardtype.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/date.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/file.rb +11 -3
- data/tmpsets/set/mod007-05_standard/type/image.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/layout_type.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/number.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/phrase.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/search_type.rb +70 -64
- data/tmpsets/set/mod007-05_standard/type/session.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/set.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/signup.rb +96 -64
- data/tmpsets/set/mod007-05_standard/type/toggle.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/uri.rb +2 -1
- data/tmpsets/set/mod007-05_standard/type/user.rb +50 -40
- data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/form.rb +2 -1
- data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/helper.rb +2 -1
- data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/wrapper.rb +2 -1
- data/tmpsets/set/mod008-06_bootstrap/all/rich_bootstrap.rb +2 -1
- data/tmpsets/set/mod008-06_bootstrap/self/bootstrap_cards.rb +2 -1
- data/tmpsets/set/mod008-06_bootstrap/self/bootstrap_js.rb +2 -1
- data/tmpsets/set/mod008-06_bootstrap/self/bootswatch_shared.rb +2 -1
- data/tmpsets/set/mod008-06_bootstrap/self/smartmenu_css.rb +2 -1
- data/tmpsets/set/mod008-06_bootstrap/self/smartmenu_js.rb +2 -1
- metadata +2 -2
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module AllCss; extend Card::Set
|
2
|
+
class Card; module Set; module All; module AllCss; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/all_css.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
format :css do
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module AllCsv; extend Card::Set
|
2
|
+
class Card; module Set; module All; module AllCsv; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/all_csv.rb ~~~~~~~~~~~
|
3
4
|
require 'csv'
|
4
5
|
|
5
6
|
format :csv do
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module AllJs; extend Card::Set
|
2
|
+
class Card; module Set; module All; module AllJs; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/all_js.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
format :js do
|
5
6
|
view :include_tag do |args|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module Base; extend Card::Set
|
2
|
+
class Card; module Set; module All; module Base; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/base.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
format do
|
5
6
|
def show view, args
|
@@ -9,38 +10,37 @@ format do
|
|
9
10
|
|
10
11
|
# NAME VIEWS
|
11
12
|
|
12
|
-
|
13
|
-
view
|
14
|
-
view
|
15
|
-
|
16
|
-
view
|
17
|
-
view
|
18
|
-
view
|
13
|
+
simple_args = { closed: true, perms: :none }
|
14
|
+
view(:name, simple_args) { card.name }
|
15
|
+
view(:key, simple_args) { card.key }
|
16
|
+
view(:title, simple_args) { |args| args[:title] || card.name }
|
17
|
+
view(:linkname, simple_args) { card.cardname.url_key }
|
18
|
+
view(:url, simple_args) { card_url _render_linkname }
|
19
|
+
view(:url_link, simple_args) { web_link card_url(_render_linkname) }
|
19
20
|
|
20
21
|
view :link, closed: true, perms: :none do |args|
|
21
|
-
card_link(
|
22
|
-
|
22
|
+
card_link(
|
23
|
+
card.name,
|
24
|
+
text: showname(args[:title]),
|
23
25
|
known: card.known?,
|
24
26
|
path_opts: { type: args[:type] }
|
25
27
|
)
|
26
28
|
end
|
27
29
|
|
28
|
-
view
|
29
|
-
view
|
30
|
-
view
|
31
|
-
|
30
|
+
view(:codename, closed: true) { card.codename.to_s }
|
31
|
+
view(:id, closed: true) { card.id }
|
32
|
+
view(:type, closed: true) { card.type_name }
|
32
33
|
|
33
34
|
# DATE VIEWS
|
34
35
|
|
35
|
-
view
|
36
|
-
view
|
37
|
-
view
|
38
|
-
|
36
|
+
view(:created_at, closed: true) { time_ago_in_words card.created_at }
|
37
|
+
view(:updated_at, closed: true) { time_ago_in_words card.updated_at }
|
38
|
+
view(:acted_at, closed: true) { time_ago_in_words card.acted_at }
|
39
39
|
|
40
40
|
# CONTENT VIEWS
|
41
41
|
|
42
42
|
view :raw do |args|
|
43
|
-
scard = args[:structure] ? Card[
|
43
|
+
scard = args[:structure] ? Card[args[:structure]] : card
|
44
44
|
scard ? scard.raw_content : _render_blank
|
45
45
|
end
|
46
46
|
|
@@ -57,32 +57,30 @@ format do
|
|
57
57
|
end
|
58
58
|
|
59
59
|
view :closed_content, closed: true do |args|
|
60
|
-
Card::Content.truncatewords_with_closing_tags _render_core(args)
|
60
|
+
Card::Content.truncatewords_with_closing_tags _render_core(args)
|
61
61
|
end
|
62
62
|
|
63
|
-
view :blank, closed: true, perms: :none do
|
63
|
+
view :blank, closed: true, perms: :none do
|
64
64
|
''
|
65
65
|
end
|
66
66
|
|
67
|
-
|
68
|
-
#
|
69
|
-
#
|
70
|
-
# for frequent override, so this shortcut is fine.
|
71
|
-
|
67
|
+
# note: content and open_content may look like they should be aliased to
|
68
|
+
# core, but it's important that they render core explicitly so that core view
|
69
|
+
# overrides work. the titled and labeled views below, however, are not
|
70
|
+
# intended for frequent override, so this shortcut is fine.
|
72
71
|
|
73
72
|
# NAME + CONTENT VIEWS
|
74
73
|
|
75
74
|
view :titled do |args|
|
76
|
-
"#{
|
75
|
+
"#{card.name}\n\n#{_render_core args}"
|
77
76
|
end
|
78
77
|
view :open, :titled
|
79
78
|
|
80
79
|
view :labeled do |args|
|
81
|
-
"#{
|
80
|
+
"#{card.name}: #{_render_closed_content args}"
|
82
81
|
end
|
83
82
|
view :closed, :labeled
|
84
83
|
|
85
|
-
|
86
84
|
# SPECIAL VIEWS
|
87
85
|
|
88
86
|
view :array do |args|
|
@@ -91,36 +89,40 @@ format do
|
|
91
89
|
end.inspect
|
92
90
|
end
|
93
91
|
|
94
|
-
|
95
|
-
|
96
|
-
#none of the below belongs here!!
|
97
|
-
|
92
|
+
# none of the below belongs here!!
|
98
93
|
|
99
94
|
view :template_rule, tags: :unknown_ok do |args|
|
100
|
-
#FIXME - relativity should be handled in smartname
|
95
|
+
# FIXME: - relativity should be handled in smartname
|
96
|
+
return '' unless args[:inc_name]
|
97
|
+
name = args[:inc_name].to_name
|
98
|
+
stripped_name = name.stripped.to_name
|
101
99
|
|
102
|
-
name
|
103
|
-
|
104
|
-
absolute = name !~ regexp && name !~ /^\+/
|
105
|
-
|
106
|
-
tname = name.gsub regexp, ''
|
107
|
-
if tname !~ /^\+/ and !absolute
|
100
|
+
if name.relative? && !stripped_name.starts_with_joint?
|
101
|
+
# not a simple relative name; just return the original syntax
|
108
102
|
"{{#{args[:inc_syntax]}}}"
|
109
103
|
else
|
110
|
-
set_name =
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
"#{
|
104
|
+
set_name =
|
105
|
+
case
|
106
|
+
when name.absolute?
|
107
|
+
"#{name}+#{Card[:self].name}" # *self set
|
108
|
+
when type = on_type_set
|
109
|
+
"#{type}#{name}+#{Card[:type_plus_right].name}" # *type plus right
|
116
110
|
else
|
117
|
-
"#{
|
111
|
+
"#{stripped_name.gsub(/^\+/, '')}+#{Card[:right].name}" # *right
|
118
112
|
end
|
119
|
-
|
120
|
-
|
121
|
-
subformat( Card.fetch(set_name) ).render_template_link args
|
113
|
+
subformat(Card.fetch set_name).render_template_link args
|
122
114
|
end
|
123
115
|
end
|
116
|
+
|
117
|
+
def on_type_set
|
118
|
+
return unless
|
119
|
+
(tmpl_set_name = parent.card.cardname.trunk_name) &&
|
120
|
+
(tmpl_set_class_name = tmpl_set_name.tag_name) &&
|
121
|
+
(tmpl_set_class_card = Card[tmpl_set_class_name]) &&
|
122
|
+
(tmpl_set_class_card.codename == 'type')
|
123
|
+
|
124
|
+
tmpl_set_name.left_name
|
125
|
+
end
|
124
126
|
end
|
125
127
|
|
126
128
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module File; extend Card::Set
|
2
|
+
class Card; module Set; module All; module File; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/file.rb ~~~~~~~~~~~
|
3
4
|
format :file do
|
4
5
|
|
5
6
|
view :core do |args|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module Json; extend Card::Set
|
2
|
+
class Card; module Set; module All; module Json; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/json.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
format :json do
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module Rss; extend Card::Set
|
2
|
+
class Card; module Set; module All; module Rss; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/rss.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
|
5
6
|
format :rss do
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module Text; extend Card::Set
|
2
|
+
class Card; module Set; module All; module Text; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/all/text.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
format :text do
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Type; module Html; extend Card::Set
|
2
|
+
class Card; module Set; module Type; module Html; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/type/html.rb ~~~~~~~~~~~
|
3
4
|
def clean_html?
|
4
5
|
false
|
5
6
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Type; module PlainText; extend Card::Set
|
2
|
+
class Card; module Set; module Type; module PlainText; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/type/plain_text.rb ~~~~~~~~~~~
|
3
4
|
format :html do
|
4
5
|
|
5
6
|
view :editor do |args|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Type; module Pointer; extend Card::Set
|
2
|
+
class Card; module Set; module Type; module Pointer; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/02_basic_types/set/type/pointer.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
event :add_and_drop_items, before: :approve, on: :save do
|
5
6
|
self.add_item Env.params['add_item'] if Env.params['add_item']
|
@@ -220,6 +221,14 @@ format :data do
|
|
220
221
|
end
|
221
222
|
end
|
222
223
|
|
224
|
+
format :rss do
|
225
|
+
def raw_feed_items args
|
226
|
+
@raw_feed_items ||= begin
|
227
|
+
card.item_cards
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
223
232
|
# while a card's card type and content are updated in the same request,
|
224
233
|
# the new module will override the old module's events and functions.
|
225
234
|
# this event is only on pointer card. Other type cards do not have this event,
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Right; module MachineInput; extend Card::Set
|
2
|
+
class Card; module Set; module Right; module MachineInput; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_input.rb ~~~~~~~~~~~
|
3
4
|
def followable?
|
4
5
|
false
|
5
6
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Right; module MachineOutput; extend Card::Set
|
2
|
+
class Card; module Set; module Right; module MachineOutput; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_output.rb ~~~~~~~~~~~
|
3
4
|
def followable?
|
4
5
|
false
|
5
6
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module ScriptAce; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module ScriptAce; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_ace.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
view :raw do |args|
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module ScriptCardMenu; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module ScriptCardMenu; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_card_menu.rb ~~~~~~~~~~~
|
3
4
|
view :raw do |args|
|
4
5
|
|
5
6
|
Rails.logger.info "reading file: #{Cardio.gem_root}/mod/03_machines/lib/javascript/#{card.codename}.js.coffee"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module ScriptHtml5shivPrintshiv; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module ScriptHtml5shivPrintshiv; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_html5shiv_printshiv.rb ~~~~~~~~~~~
|
3
4
|
format { include ScriptAce::Format }
|
4
5
|
format(:html) { include ScriptAce::HtmlFormat }
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module ScriptJquery; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module ScriptJquery; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_jquery.rb ~~~~~~~~~~~
|
3
4
|
format { include ScriptAce::Format }
|
4
5
|
format(:html) { include ScriptAce::HtmlFormat }
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module ScriptJqueryHelper; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module ScriptJqueryHelper; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_jquery_helper.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
view :raw do |args|
|
5
6
|
# jquery.ui.all must be after jquery.mobile to override dialog weirdness *
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module ScriptSlot; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module ScriptSlot; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_slot.rb ~~~~~~~~~~~
|
3
4
|
view :raw do |args|
|
4
5
|
[ "wagn_mod.js.coffee", "wagn.js.coffee" ].map do |name|
|
5
6
|
File.read "#{Cardio.gem_root}/mod/03_machines/lib/javascript/#{name}"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module ScriptTinymce; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module ScriptTinymce; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/script_tinymce.rb ~~~~~~~~~~~
|
3
4
|
format { include ScriptAce::Format }
|
4
5
|
format(:html) { include ScriptAce::HtmlFormat }
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module StyleBootstrapCompatible; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module StyleBootstrapCompatible; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/style_bootstrap_compatible.rb ~~~~~~~~~~~
|
3
4
|
view :raw do |args|
|
4
5
|
File.read "#{Cardio.gem_root}/mod/03_machines/lib/stylesheets/#{card.codename}.css"
|
5
6
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module StyleCards; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module StyleCards; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/style_cards.rb ~~~~~~~~~~~
|
3
4
|
|
4
5
|
view :raw do |args|
|
5
6
|
File.read "#{Cardio.gem_root}/mod/03_machines/lib/stylesheets/style_cards.scss"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Self; module StyleJqueryUiSmoothness; extend Card::Set
|
2
|
+
class Card; module Set; module Self; module StyleJqueryUiSmoothness; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/self/style_jquery_ui_smoothness.rb ~~~~~~~~~~~
|
3
4
|
format { include StyleBootstrapCompatible::Format }
|
4
5
|
format(:html) { include ScriptAce::HtmlFormat }
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Type; module CoffeeScript; extend Card::Set
|
2
|
+
class Card; module Set; module Type; module CoffeeScript; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/coffee_script.rb ~~~~~~~~~~~
|
3
4
|
# -*- encoding : utf-8 -*-
|
4
5
|
require 'coffee-script'
|
5
6
|
require 'uglifier'
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Type; module Css; extend Card::Set
|
2
|
+
class Card; module Set; module Type; module Css; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/css.rb ~~~~~~~~~~~
|
3
4
|
# -*- encoding : utf-8 -*-
|
4
5
|
require 'sass'
|
5
6
|
include Machine
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Type; module JavaScript; extend Card::Set
|
2
|
+
class Card; module Set; module Type; module JavaScript; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/java_script.rb ~~~~~~~~~~~
|
3
4
|
# -*- encoding : utf-8 -*-
|
4
5
|
require 'uglifier'
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Type; module Scss; extend Card::Set
|
2
|
+
class Card; module Set; module Type; module Scss; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/scss.rb ~~~~~~~~~~~
|
3
4
|
include Type::Css
|
4
5
|
|
5
6
|
def diff_args
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Type; module Skin; extend Card::Set
|
2
|
+
class Card; module Set; module Type; module Skin; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/skin.rb ~~~~~~~~~~~
|
3
4
|
include Machine
|
4
5
|
include MachineInput
|
5
6
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Abstract; module Permission; extend Card::Set
|
2
|
+
class Card; module Set; module Abstract; module Permission; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/abstract/permission.rb ~~~~~~~~~~~
|
3
4
|
def standardize_items
|
4
5
|
# noop to override default behavior, which wouldn't let '_left' through and would therefore break
|
5
6
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Right; module AddHelp; extend Card::Set
|
2
|
+
class Card; module Set; module Right; module AddHelp; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/right/add_help.rb ~~~~~~~~~~~
|
3
4
|
format :html do
|
4
5
|
view :core do |args|
|
5
6
|
with_inclusion_mode :template do
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Right; module Comment; extend Card::Set
|
2
|
+
class Card; module Set; module Right; module Comment; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/right/comment.rb ~~~~~~~~~~~
|
3
4
|
include Abstract::Permission
|
4
5
|
|
5
6
|
format :html do include Abstract::Permission::HtmlFormat end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module Right; module Create; extend Card::Set
|
2
|
+
class Card; module Set; module Right; module Create; extend Card::Set
|
3
|
+
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/04_settings/set/right/create.rb ~~~~~~~~~~~
|
3
4
|
include Abstract::Permission
|
4
5
|
|
5
6
|
format :html do include Abstract::Permission::HtmlFormat end
|