pageflow-internal-links 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NTYxZDcyYmRmMGViYjdlZGMxMzFkNTJmOGI1MmI1ZjQ1ODM3M2QxNQ==
5
- data.tar.gz: !binary |-
6
- Y2NkMzU4OTliNzRiNWU2MmE3MTg0ZTcxOWRmZTk1ZDQyYzgwOGQ3Zg==
2
+ SHA1:
3
+ metadata.gz: 0845761ea65ab16498a70c7d3364b69cc1c3aff6
4
+ data.tar.gz: 3676084ee081f6d236146aece24c1c92db12cb33
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZDQ2NWFmOGUyMGMzMWUyNGYzYTNmODE4YzgwYjk4NDYwYmNhN2Y2YTdhYjg4
10
- Mjg1ZmVlNzFiNTQxMzYyODZjMzIyOWU5MWM4MTIwZmRjNGU4YjBhYzgzMDNj
11
- MTg0ZGQ4ZjZkNDJhNjZlYjFkN2UwYzg1YzM5ZTM4ZmQ4MzU4NDY=
12
- data.tar.gz: !binary |-
13
- OTQ0YTZlY2MyMTJiMDJiNDczMWIwYTNlYjU0NTVjZTI1MjBjMTdkNDgyMWE0
14
- YWU4N2M3ZmJhNjJhYjQyNzNmYTBkMjJjMTVlOTJkMTBiZmJmZTg0ZWI1NGI3
15
- ZWVhZmM1NGNlZTU0Y2JhYzdiMDE2YWIzZDAzYzRiZjg0MzQ1YjM=
6
+ metadata.gz: ac0533baa66a611b2ca887a04261b8e9ea5903ebca758853152b72a6b2db907cf111f2b00e960b60339bf8dda4981578e05986d50400a5718c5d7322fe2ad89f
7
+ data.tar.gz: c11bcc37e3da97991256825f8de1355f6954970b8122922b5ee68326773c6cc74f26a712049c8e30a35b984dab689cf9fb481ba7e71d5ff1b62c4e6743a6ff4c
@@ -1,5 +1,16 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 0.2.0
4
+
5
+ 2016-06-09
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow-internal-links/compare/v0.1.0...v0.2.0)
8
+
9
+ - Use common page link attribute inline help texts
10
+ ([#5](https://github.com/codevise/pageflow-internal-links/pull/5))
11
+ - Add themeable page type pictograms
12
+ ([#4](https://github.com/codevise/pageflow-internal-links/pull/4))
13
+
3
14
  ### Version 0.1.0
4
15
 
5
16
  2015-10-23
data/README.md CHANGED
@@ -32,6 +32,13 @@ Include javascripts and stylesheets:
32
32
  # app/assets/stylesheets/pageflow/editor.css.scss
33
33
  @import "pageflow/internal_links/editor";
34
34
 
35
+ Import the default theme additions:
36
+
37
+ # app/assets/stylesheets/pageflow/themes/default.css.scss
38
+
39
+ @import "pageflow/internal_links/themes/default";
40
+ @import "pageflow/internal_links/themes/default/list_as_multiple_choice";
41
+
35
42
  Install dependencies:
36
43
 
37
44
  bundle install
data/Rakefile CHANGED
@@ -5,3 +5,6 @@ rescue LoadError
5
5
  end
6
6
 
7
7
  Bundler::GemHelper.install_tasks
8
+
9
+ require 'semmy'
10
+ Semmy::Tasks.install
@@ -87,4 +87,4 @@ pageflow.internalLinks.PageLinksCollection = Backbone.Collection.extend({
87
87
 
88
88
  return this.configuration.page.id + ':' + (maxId + 1);
89
89
  }
90
- });
90
+ });
@@ -17,7 +17,11 @@ pageflow.internalLinks.EditPageLinkView = Backbone.Marionette.Layout.extend({
17
17
 
18
18
  onRender: function() {
19
19
  var configurationEditor = new pageflow.ConfigurationEditorView({
20
- model: this.model
20
+ model: this.model,
21
+ attributeTranslationKeyPrefixes: [
22
+ 'pageflow.internal_links.page_link_attributes',
23
+ 'pageflow.common_page_link_attributes'
24
+ ]
21
25
  });
22
26
 
23
27
  this.configure(configurationEditor);
@@ -0,0 +1,4 @@
1
+ @include pageflow-page-type-pictograms("internal_links_grid",
2
+ $directory: "pageflow/internal_links/themes/default/pictograms/grid");
3
+ @include pageflow-page-type-pictograms("internal_links_list",
4
+ $directory: "pageflow/internal_links/themes/default/pictograms/list");
@@ -0,0 +1,120 @@
1
+ .page .internal_links_list_page {
2
+ $internal-links-list-main-color: $main-color-dark !default;
3
+ $internal-links-list-item-background-color: rgba(48, 48, 48, 0.8) !default;
4
+
5
+ nav {
6
+ position: absolute;
7
+ bottom: 6.666%;
8
+ left: 50%;
9
+ padding: 0 4% 0 4%;
10
+ width: 100%;
11
+ @include transform(translate(-50%,0));
12
+ text-align: center;
13
+ box-sizing: border-box;
14
+
15
+ @include mobile {
16
+ position: relative;
17
+ left: 0;
18
+ top: 0;
19
+ bottom: auto;
20
+ padding: 0;
21
+ @include transform(none);
22
+ }
23
+
24
+ ul {
25
+ padding: 0;
26
+ }
27
+
28
+ .page_link {
29
+ max-height: 200px;
30
+ width: 300px;
31
+ height: 200px;
32
+ font-size: 20px;
33
+ color: #D3D3D3;
34
+ letter-spacing: 0.22px;
35
+ line-height: 30px;
36
+ text-align: center;
37
+ position: relative;
38
+ background-color: $internal-links-list-item-background-color;
39
+ image-rendering: optimizeSpeed;
40
+ image-rendering: -moz-crisp-edges;
41
+ image-rendering: -o-crisp-edges;
42
+ image-rendering: -webkit-optimize-contrast;
43
+ image-rendering: optimize-contrast;
44
+ image-rendering: crisp-edges;
45
+ image-rendering: pixelated;
46
+ -ms-interpolation-mode: nearest-neighbor;
47
+
48
+ .details {
49
+ position: absolute;
50
+ top: 50%;
51
+ margin: 0;
52
+ padding: 10%;
53
+ width: 100%;
54
+ box-sizing: border-box;
55
+ @include transform(translate(0,-50%));
56
+
57
+ p:last-of-type {
58
+ margin: 0;
59
+ }
60
+ }
61
+
62
+ .page_thumbnail {
63
+ display: none;
64
+ }
65
+ }
66
+ li:hover {
67
+ .page_link {
68
+ background-color: $internal-links-list-main-color;
69
+ @include transform(scale(1.02));
70
+ }
71
+ }
72
+
73
+ @media (max-width: 1380px) {
74
+ li {
75
+ width: 23.5%;
76
+ margin: 0 0.25%;
77
+
78
+ .page_link {
79
+ width: 100%;
80
+ }
81
+ }
82
+ }
83
+ @media (max-width: 1150px) {
84
+ li {
85
+ .page_link {
86
+ font-size: 16px;
87
+ }
88
+ }
89
+ }
90
+ @media (max-width: 800px) {
91
+ li {
92
+ width: 46%;
93
+ margin-right: 10px;
94
+ margin-bottom: 10px;
95
+
96
+ .page_link {
97
+ height: 160px;
98
+ font-size: 14px;
99
+ }
100
+ }
101
+ }
102
+ @media (max-width: 500px) {
103
+ li {
104
+ width: 46%;
105
+ margin-right: 3px;
106
+ margin-bottom: 3px;
107
+
108
+ .page_link {
109
+ height: 120px;
110
+ font-size: 12px;
111
+ margin-bottom: 0;
112
+
113
+ .details p {
114
+ line-height: 1.1em;
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
@@ -1,19 +1,4 @@
1
1
  de:
2
- activerecord:
3
- attributes:
4
- pageflow/internal_links/page_link:
5
- description: Beschreibung
6
- label: Bezeichnung
7
- page_transition: Seitenübergangseffekt
8
- target_page_id: Zielseite
9
- pageflow/page:
10
- linked_pages_layout: Hervorgehobenes Element
11
- values:
12
- pageflow/page:
13
- linked_pages_layout:
14
- default: (Kein)
15
- hero_top_left: Links oben
16
- hero_top_right: Rechts oben
17
2
  pageflow:
18
3
  internal_links:
19
4
  editor:
@@ -28,34 +13,46 @@ de:
28
13
  views:
29
14
  edit_page_link_view:
30
15
  confirm_destroy: Verweis wirklich löschen?
31
- default_page_transition: (Standard)
16
+ default_page_transition: "(Standard)"
32
17
  grid:
33
18
  help_entries:
34
19
  page_type:
35
- menu_item: Seitenverweise
36
- text: ! '# Seitenverweise
37
-
20
+ menu_item: Mosaik
21
+ text: |-
22
+ # Mosaik
38
23
 
39
24
  Verweise auf andere Seiten innerhalb eines Pageflows
40
-
41
25
  Im Gegensatz zur externen Verweis-Seite, werden hier interne Seiten innerhalb des
42
-
43
26
  Pageflows verlinkt. Dies bietet sich an, um den User gezielt durch den Pageflow zu leiten.
44
27
 
45
-
46
28
  Typische Anwendungsbeispiele: Willkommens-Seite, Kapitel-Startseite
47
-
48
- '
29
+ page_attributes:
30
+ linked_pages_layout:
31
+ inline_help: Ein Thumbnail im Mosaik kann größer dargestellt werden.
32
+ label: Hervorgehobenes Element
33
+ values:
34
+ default: "(Kein)"
35
+ hero_top_left: Links oben
36
+ hero_top_right: Rechts oben
49
37
  page_type_category_name: Verweise
50
- page_type_description: Sammlung von Verweisen zu anderen Seiten dieses Pageflows
51
- page_type_name: Seitenverweise
38
+ page_type_description: Verweise zu anderen Seiten als Mosaik angeordnet
39
+ page_type_name: Mosaik
52
40
  list:
53
41
  help_entries:
54
42
  page_type:
55
- menu_item: Seitenverweise
56
- text: TODO
43
+ menu_item: Multiple Choice
44
+ text: |-
45
+ # Multiple Choice
46
+
47
+ Links auf andere Seiten des Pageflows dargestellt als horizontal angeordnete Boxen mit einem kurzen Text.
48
+
49
+ Typische Anwendungsbeispiele: Frage/Antwort-Seite, interaktives Interview, Quiz
57
50
  page_type_category_name: Verweise
58
- page_type_description: Sammlung von Verweisen zu anderen Seiten dieses Pageflows
59
- page_type_name: Seitenverweis-Liste
51
+ page_type_description: Verweise auf andere Seiten als Reihe von Antworten
52
+ page_type_name: Multiple Choice
53
+ page_link_attributes:
54
+ description:
55
+ inline_help: Dieser Text wird auf dem Verweis angezeigt.
56
+ label: Beschreibung
60
57
  internal_links_list:
61
- page_type_feature_name: Seitenverweis-Liste Seitentyp
58
+ page_type_feature_name: Multiple Choice Seitentyp
@@ -1,19 +1,4 @@
1
1
  en:
2
- activerecord:
3
- attributes:
4
- pageflow/internal_links/page_link:
5
- description: Description
6
- label: Label
7
- page_transition: Page transition
8
- target_page_id: Target page
9
- pageflow/page:
10
- linked_pages_layout: Hero
11
- values:
12
- pageflow/page:
13
- linked_pages_layout:
14
- default: (none)
15
- hero_top_left: Top left
16
- hero_top_right: Top right
17
2
  pageflow:
18
3
  internal_links:
19
4
  editor:
@@ -32,33 +17,45 @@ en:
32
17
  grid:
33
18
  help_entries:
34
19
  page_type:
35
- menu_item: Internal Links
36
- text: ! '# Internal Links
37
-
20
+ menu_item: Internal Links Grid
21
+ text: |-
22
+ # Internal Links Grid
38
23
 
39
24
  References to other pages inside a Pageflow
40
25
 
41
-
42
26
  In contrast to external link, you can link to pages inside
43
-
44
27
  your Pageflow. This page type helps you guide your users
45
-
46
28
  through your Pageflow.
47
29
 
48
-
49
30
  Examples of application: Welcome page, chapter homepage
50
-
51
- '
31
+ page_attributes:
32
+ linked_pages_layout:
33
+ inline_help: Emphasize one of the thumbnails.
34
+ label: Enlarged element
35
+ values:
36
+ default: "(none)"
37
+ hero_top_left: Top left
38
+ hero_top_right: Top right
52
39
  page_type_category_name: Links
53
40
  page_type_description: A grid of thumbnails linking to other pages inside the Pageflow
54
- page_type_name: Internal Links
41
+ page_type_name: Internal Links Grid
55
42
  list:
56
43
  help_entries:
57
44
  page_type:
58
- menu_item: Internal Links List
59
- text: TODO
45
+ menu_item: Multiple Choice
46
+ text: |+
47
+ # Multiple Choice
48
+
49
+ A collection of links to other pages of the Pageflow displayed as a row of boxes with some text.
50
+
51
+ Examples of application: Question/answer page, interactive interview, quiz
52
+
60
53
  page_type_category_name: Links
61
- page_type_description: TODO
62
- page_type_name: Internal Links List
54
+ page_type_description: Links to other pages as collection of answers
55
+ page_type_name: Multiple Choice
56
+ page_link_attributes:
57
+ description:
58
+ inline_help: This text is displayed on the link item.
59
+ label: Description
63
60
  internal_links_list:
64
- page_type_feature_name: Internal Links Page Types
61
+ page_type_feature_name: Multiple Choice Page Type
@@ -4,6 +4,7 @@ module Pageflow
4
4
  isolate_namespace Pageflow::InternalLinks
5
5
 
6
6
  config.autoload_paths << File.join(config.root, 'lib')
7
+ config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.yml').to_s]
7
8
  end
8
9
  end
9
10
  end
@@ -0,0 +1,5 @@
1
+ module Pageflow
2
+ module InternalLinks
3
+ VERSION = '0.2.0'.freeze
4
+ end
5
+ end
@@ -1,12 +1,15 @@
1
1
  # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pageflow/internal_links/version'
2
5
 
3
6
  Gem::Specification.new do |spec|
4
7
  spec.name = 'pageflow-internal-links'
5
- spec.version = '0.1.0'
8
+ spec.version = Pageflow::InternalLinks::VERSION
6
9
  spec.authors = ['Codevise Solutions']
7
10
  spec.email = ['info@codevise.de']
8
11
  spec.summary = 'Pageflow page types for linking to other pages.'
9
- spec.homepage = ''
12
+ spec.homepage = 'https://github.com/codevise/pageflow-internal-links'
10
13
  spec.license = 'MIT'
11
14
 
12
15
  spec.files = `git ls-files`.split($/)
@@ -14,5 +17,8 @@ Gem::Specification.new do |spec|
14
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
18
  spec.require_paths = ['lib']
16
19
 
17
- spec.add_runtime_dependency('pageflow', '~> 0.9')
20
+ spec.add_runtime_dependency('pageflow', '~> 0.10')
21
+
22
+ # Semantic versioning rake tasks
23
+ spec.add_development_dependency 'semmy', '~> 0.2'
18
24
  end
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-internal-links
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-23 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '0.10'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.9'
26
+ version: '0.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: semmy
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.2'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.2'
27
41
  description:
28
42
  email:
29
43
  - info@codevise.de
@@ -31,12 +45,16 @@ executables: []
31
45
  extensions: []
32
46
  extra_rdoc_files: []
33
47
  files:
34
- - .gitignore
35
- - .jshintrc
48
+ - ".gitignore"
49
+ - ".jshintrc"
36
50
  - CHANGELOG.md
37
51
  - Gemfile
38
52
  - README.md
39
53
  - Rakefile
54
+ - app/assets/images/pageflow/internal_links/themes/default/pictograms/grid/sprite.png
55
+ - app/assets/images/pageflow/internal_links/themes/default/pictograms/grid/wide.png
56
+ - app/assets/images/pageflow/internal_links/themes/default/pictograms/list/sprite.png
57
+ - app/assets/images/pageflow/internal_links/themes/default/pictograms/list/wide.png
40
58
  - app/assets/images/pageflow/internal_links_grid_pictogram.png
41
59
  - app/assets/images/pageflow/internal_links_grid_pictogram_small.png
42
60
  - app/assets/images/pageflow/internal_links_grid_sprite.png
@@ -73,6 +91,8 @@ files:
73
91
  - app/assets/stylesheets/pageflow/internal_links/editor/embedded_list_item.scss
74
92
  - app/assets/stylesheets/pageflow/internal_links/grid.scss
75
93
  - app/assets/stylesheets/pageflow/internal_links/list.scss
94
+ - app/assets/stylesheets/pageflow/internal_links/themes/default.scss
95
+ - app/assets/stylesheets/pageflow/internal_links/themes/default/list_as_multiple_choice.scss
76
96
  - app/helpers/pageflow/internal_links/grid_helper.rb
77
97
  - app/helpers/pageflow/internal_links/list_helper.rb
78
98
  - app/helpers/pageflow/internal_links/page_links.rb
@@ -89,8 +109,9 @@ files:
89
109
  - lib/pageflow/internal_links/grid_page_type.rb
90
110
  - lib/pageflow/internal_links/list_page_type.rb
91
111
  - lib/pageflow/internal_links/plugin.rb
112
+ - lib/pageflow/internal_links/version.rb
92
113
  - pageflow-internal-links.gemspec
93
- homepage: ''
114
+ homepage: https://github.com/codevise/pageflow-internal-links
94
115
  licenses:
95
116
  - MIT
96
117
  metadata: {}
@@ -100,17 +121,17 @@ require_paths:
100
121
  - lib
101
122
  required_ruby_version: !ruby/object:Gem::Requirement
102
123
  requirements:
103
- - - ! '>='
124
+ - - ">="
104
125
  - !ruby/object:Gem::Version
105
126
  version: '0'
106
127
  required_rubygems_version: !ruby/object:Gem::Requirement
107
128
  requirements:
108
- - - ! '>='
129
+ - - ">="
109
130
  - !ruby/object:Gem::Version
110
131
  version: '0'
111
132
  requirements: []
112
133
  rubyforge_project:
113
- rubygems_version: 2.4.2
134
+ rubygems_version: 2.2.5
114
135
  signing_key:
115
136
  specification_version: 4
116
137
  summary: Pageflow page types for linking to other pages.