admin_help 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +53 -3
  4. data/README.md +9 -6
  5. data/admin_help.gemspec +2 -0
  6. data/app/assets/fonts/iconfont.eot +0 -0
  7. data/app/assets/fonts/iconfont.svg +68 -0
  8. data/app/assets/fonts/iconfont.ttf +0 -0
  9. data/app/assets/fonts/iconfont.woff +0 -0
  10. data/app/assets/fonts/iconfont.woff2 +0 -0
  11. data/app/assets/javascripts/admin_help.js +2 -3
  12. data/app/assets/javascripts/aiui.js +31 -0
  13. data/app/assets/javascripts/chosen.jquery.js +1359 -0
  14. data/app/assets/stylesheets/admin_help.scss +2 -0
  15. data/app/assets/stylesheets/aiui.scss +82 -0
  16. data/app/assets/stylesheets/alert.scss +34 -0
  17. data/app/assets/stylesheets/aside.scss +85 -0
  18. data/app/assets/stylesheets/button.scss +122 -0
  19. data/app/assets/stylesheets/chosen.css.erb +495 -0
  20. data/app/assets/stylesheets/form.scss +151 -0
  21. data/app/assets/stylesheets/icon.scss.erb +72 -0
  22. data/app/assets/stylesheets/input.scss +52 -0
  23. data/app/assets/stylesheets/nav.scss +28 -0
  24. data/app/assets/stylesheets/pagination.scss +49 -0
  25. data/app/assets/stylesheets/table.scss +73 -0
  26. data/app/assets/stylesheets/tooltip.scss +38 -0
  27. data/app/controllers/admin_help_controller.rb +2 -0
  28. data/app/controllers/frontend_controller.rb +8 -0
  29. data/app/views/frontend/buttons.html.erb +78 -0
  30. data/app/views/frontend/index.html.erb +0 -0
  31. data/app/views/frontend/nav.html.erb +0 -0
  32. data/app/views/frontend/paginate.html.erb +32 -0
  33. data/app/views/frontend/table.html.erb +34 -0
  34. data/{lib/generators/admin_help/templates/layouts → app/views/layouts/frontend}/flash.html.erb +0 -0
  35. data/app/views/layouts/frontend/frontend.html.erb +30 -0
  36. data/app/views/layouts/frontend/header.html.erb +3 -0
  37. data/app/views/layouts/frontend/left_nav.html.erb +29 -0
  38. data/config/routes.rb +24 -0
  39. data/lib/admin_help/engine.rb +4 -0
  40. data/lib/admin_help/version.rb +1 -1
  41. data/lib/generators/admin/scaffold_controller/templates/views/erb/_form.html.erb.erb +9 -34
  42. data/lib/generators/admin/scaffold_controller/templates/views/erb/edit.html.erb.erb +2 -5
  43. data/lib/generators/admin/scaffold_controller/templates/views/erb/index.html.erb.erb +23 -30
  44. data/lib/generators/admin/scaffold_controller/templates/views/erb/new.html.erb.erb +2 -5
  45. data/lib/generators/admin/scaffold_controller/templates/views/erb/show.html.erb.erb +20 -21
  46. data/lib/generators/admin_help/install_generator.rb +12 -4
  47. data/lib/generators/admin_help/templates/app/controllers/admin/home_controller.rb +4 -0
  48. data/lib/generators/admin_help/templates/app/views/admin/home/index.html.erb +1 -0
  49. data/lib/generators/admin_help/templates/app/views/admin/kaminari/_first_page.html.erb +15 -0
  50. data/lib/generators/admin_help/templates/app/views/admin/kaminari/_gap.html.erb +9 -0
  51. data/lib/generators/admin_help/templates/app/views/admin/kaminari/_last_page.html.erb +15 -0
  52. data/lib/generators/admin_help/templates/app/views/admin/kaminari/_next_page.html.erb +12 -0
  53. data/lib/generators/admin_help/templates/app/views/admin/kaminari/_page.html.erb +12 -0
  54. data/lib/generators/admin_help/templates/app/views/admin/kaminari/_paginator.html.erb +32 -0
  55. data/lib/generators/admin_help/templates/app/views/admin/kaminari/_prev_page.html.erb +12 -0
  56. data/lib/generators/admin_help/templates/{layouts/application.html.erb → app/views/layouts/admin_help.html.erb} +7 -3
  57. data/lib/generators/admin_help/templates/app/views/layouts/flash.html.erb +6 -0
  58. data/lib/generators/admin_help/templates/app/views/layouts/header.html.erb +3 -0
  59. data/lib/generators/admin_help/templates/app/views/layouts/left_nav.html.erb +36 -0
  60. data/lib/generators/admin_help/templates/config/initializers/locale.rb +4 -0
  61. data/lib/generators/admin_help/templates/config/locales/models/en.models.yml +7 -0
  62. data/lib/generators/admin_help/templates/config/locales/models/zh-cn.models.yml +7 -0
  63. data/lib/generators/admin_help/templates/config/locales/views/en.common.yml +28 -0
  64. data/lib/generators/admin_help/templates/config/locales/views/zh-cn.common.yml +235 -0
  65. data/lib/generators/admin_help/templates/config/routes.rb +4 -0
  66. metadata +68 -16
  67. data/app/assets/fonts/FontAwesome.otf +0 -0
  68. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  69. data/app/assets/fonts/fontawesome-webfont.svg +0 -2671
  70. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  71. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  72. data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
  73. data/app/assets/stylesheets/admin_help.css +0 -4
  74. data/app/assets/stylesheets/aiui.scss.erb +0 -387
  75. data/app/assets/stylesheets/font-awesome.css.erb +0 -2342
  76. data/lib/generators/admin_help/templates/layouts/header.html.erb +0 -41
  77. data/lib/generators/admin_help/templates/layouts/left_nav.html.erb +0 -13
@@ -0,0 +1,151 @@
1
+ .inputs {
2
+
3
+ // display: table-caption;
4
+ div {
5
+ margin-bottom: 20px;
6
+ display: table;
7
+ width: 100% !important;
8
+ vertical-align: middle;
9
+
10
+ div {
11
+ margin-bottom: 0px;
12
+ }
13
+ }
14
+
15
+ .error {
16
+ color: #ff5e5e;
17
+ font-size: 12px;
18
+ }
19
+
20
+ .field_with_errors {
21
+ input {
22
+ border: 1px solid #ff5e5e;
23
+ }
24
+
25
+ input:focus {
26
+ border: 1px solid #ff5e5e !important;
27
+ }
28
+ }
29
+
30
+ label {
31
+ font-size: 15px;
32
+ padding-top: 10px;
33
+ color: #666;
34
+ width: 100px;
35
+ display: table-cell;
36
+ vertical-align: top;
37
+ }
38
+
39
+ .hint {
40
+ font-size: 12px;
41
+ color: #999;
42
+ }
43
+
44
+ // 嵌套表单 nested_form
45
+ table {
46
+ max-width: 900px;
47
+ min-width: 600px;
48
+ overflow: auto;
49
+ margin-left: 90px;
50
+
51
+ tr {
52
+ .input span {
53
+ width: 100% !important;
54
+ }
55
+
56
+ td {
57
+ border-bottom: none;
58
+
59
+ label {
60
+ padding-top: 0px;
61
+ }
62
+ }
63
+ }
64
+
65
+ tr:nth-child(even) {
66
+ background: unset;
67
+ }
68
+ }
69
+
70
+ .add_nested_fields {
71
+ display: inline-block;
72
+ font-size: 0.64285714rem;
73
+ line-height: 1;
74
+ vertical-align: baseline;
75
+ margin: 0em 0.14285714em;
76
+ background-image: none;
77
+ padding: 0.5833em 0.833em;
78
+ text-transform: none;
79
+ font-weight: bold;
80
+ border: 0px solid transparent;
81
+ border-radius: 0.28571429rem;
82
+ -webkit-transition: background 0.1s ease;
83
+ transition: background 0.1s ease;
84
+ background-color: #21BA45;
85
+ color: #FFFFFF;
86
+ text-shadow: none;
87
+ background-image: none;
88
+ -webkit-box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
89
+ box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
90
+ }
91
+
92
+ .add_nested_fields:hover {
93
+ background-color: #16ab39;
94
+ }
95
+
96
+ .add_nested_fields:active {
97
+ background-color: #198f35;
98
+ }
99
+
100
+ .remove_nested_fields {
101
+ display: inline-block;
102
+ font-size: 0.64285714rem;
103
+ line-height: 1;
104
+ vertical-align: baseline;
105
+ margin: 0em 0.14285714em;
106
+ background-image: none;
107
+ padding: 0.5833em 0.833em;
108
+ text-transform: none;
109
+ font-weight: bold;
110
+ border: 0px solid transparent;
111
+ border-radius: 0.28571429rem;
112
+ -webkit-transition: background 0.1s ease;
113
+ transition: background 0.1s ease;
114
+ background-color: #DB2828;
115
+ color: #FFFFFF;
116
+ text-shadow: none;
117
+ background-image: none;
118
+ -webkit-box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
119
+ box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset;
120
+ }
121
+
122
+ .remove_nested_fields:hover {
123
+ background-color: #d01919;
124
+ }
125
+
126
+ .remove_nested_fields:active {
127
+ background-color: #b21e1e;
128
+ }
129
+ }
130
+ .actions {
131
+ height: 40px;
132
+ padding: 20px 20px 0px 0px;
133
+
134
+ input {
135
+ width: auto;
136
+ text-align: center;
137
+ float: left;
138
+ margin-right: 10px;
139
+ }
140
+
141
+ a {
142
+ display: block;
143
+ width: auto;
144
+ text-align: center;
145
+ float: left;
146
+ margin-right: 10px;
147
+ }
148
+ }
149
+ .error_notification {
150
+ color: #ff5e5e;
151
+ }
@@ -0,0 +1,72 @@
1
+ @font-face {font-family: "iconfont";
2
+ src: url('<%= font_path('iconfont.eot') %>?t=1579671868240'); /* IE9 */
3
+ src: url('<%= font_path('iconfont.eot') %>?t=1579671868240#iefix') format('embedded-opentype'), /* IE6-IE8 */
4
+ url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAjsAAsAAAAAEJwAAAifAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEdgqRRI1pATYCJAM8CyAABCAFhG0HgT0b1g0jEWZ0FED2Fwnx2FFLlbzIUwQD0YkB9cXE7iUb5/x+dV/LNcHzn3/knXnzhd0ArOwuJxXoMj90vWXQ0S17eSKUnOG/M3tvJrqZeMnZbPfSBVFF2zouERQzrWfuHCyZlE6N4OvgXyIAENxgzMgb/qNucSrDmGFpC4ysZ7vuaXgRIj+OzP+aq9xQf93mvy00CIUWJ/Znqg2xTKIRKiHdYTrRBjTRUEdphFYJIWI12tivUGiLwTMqakMBMS3pjho1plMJeBi4QCFj2WKzFvA8JWbKpCKU+MSNBnUIj1Dv1veBg+7n1Wd6KB5oPIHXNX5BkwHUWr7dkMpVTJMdVOvTAxkWCNAdMJn4Jim7DISqmRbifMM+oDFl1F5otU1tGzvADrYrbWVP2f9fz3674ZyFLdt6be5XNKa5WKplHmQYYrbzXx4+HjkpCQGaCAXKJxKm6L0cysGiADKwCsCA1QAx2BRAwLYGCMG2AfDBDgDwwA5mrVu0EgKWF1WQk0B0CnICiP4DQMPXs3oi7j02OPeWsIhuaAl0A30MZC58ZB1QR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4NeRbNh9pjaAg96/3Qee/oZrjecqqDe0/cjGHZ6txOQfyJQxzrbov+aWrdY30kil/Jt8Xf8Z6OBEkFunjdhB11Ev442aKdpPzCsfti/3tLuTmW5N/y+IsyYqq6YZp2cJxPX9xxWN0uOFZaNNxryioU6PKzUNEEMYNzgTcFo2gXMelJo+L2X/Xi0Q4YiiaB3U0RzwM1XiUYSa3faWxV5dvbcalNA7Xx3UX6nbZCvJiAQ==') format('woff2'),
5
+ url('<%= font_path('iconfont.woff') %>?t=1579671868240') format('woff'),
6
+ url('<%= font_path('iconfont.ttf') %>?t=1579671868240') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
7
+ url('<%= font_path('iconfont.svg') %>?t=1579671868240#iconfont') format('svg'); /* iOS 4.1- */
8
+ }
9
+
10
+ .ai {
11
+ font-family: "iconfont" !important;
12
+ font-size: inherit;
13
+ font-style: normal;
14
+ -webkit-font-smoothing: antialiased;
15
+ -moz-osx-font-smoothing: grayscale;
16
+ }
17
+
18
+ .ai-archive:before {
19
+ content: "\e6fe";
20
+ }
21
+
22
+ .ai-work:before {
23
+ content: "\e60c";
24
+ }
25
+
26
+ .ai-pencil:before {
27
+ content: "\e601";
28
+ }
29
+
30
+ .ai-home:before {
31
+ content: "\e621";
32
+ }
33
+
34
+ .ai-app:before {
35
+ content: "\e6af";
36
+ }
37
+
38
+ .ai-times:before {
39
+ content: "\edb2";
40
+ }
41
+
42
+ .ai-cube:before {
43
+ content: "\e680";
44
+ }
45
+
46
+ .ai-file:before {
47
+ content: "\e66f";
48
+ }
49
+
50
+ .ai-users:before {
51
+ content: "\e600";
52
+ }
53
+
54
+ .ai-user:before {
55
+ content: "\e63d";
56
+ }
57
+
58
+ .ai-apple:before {
59
+ content: "\eebd";
60
+ }
61
+
62
+ .ai-next:before {
63
+ content: "\e602";
64
+ }
65
+
66
+ .ai-prev:before {
67
+ content: "\e620";
68
+ }
69
+
70
+ .ai-shenglve:before {
71
+ content: "\e63a";
72
+ }
@@ -0,0 +1,52 @@
1
+ input[type="text"],
2
+ input[type="number"],
3
+ input[type="tel"],
4
+ input[type="date"],
5
+ input[type="password"],
6
+ select {
7
+ -webkit-appearance: none;
8
+ width: 100% !important;
9
+ background-color: #fff;
10
+ border-radius: 4px;
11
+ border: 1px solid #dcdfe6;
12
+ box-sizing: border-box;
13
+ color: #606266;
14
+ font-size: inherit;
15
+ height: 36px;
16
+ outline: none;
17
+ padding: 5px 15px;
18
+ transition: .1s;
19
+ -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
20
+ text-decoration: none;
21
+ }
22
+
23
+ textarea {
24
+ min-height: 36px;
25
+ height: 106px;
26
+ -webkit-appearance: none;
27
+ border-style: solid;
28
+ resize: vertical;
29
+ padding: 7px 15px;
30
+ box-sizing: border-box;
31
+ width: 100%;
32
+ font-size: inherit;
33
+ color: #606266;
34
+ background-color: #fff;
35
+ background-image: none;
36
+ border: 1px solid #dcdfe6;
37
+ border-radius: 4px;
38
+ transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
39
+ -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
40
+ text-decoration: none;
41
+ }
42
+
43
+ input[type="text"]:focus,
44
+ input[type="number"]:focus,
45
+ input[type="tel"]:focus,
46
+ input[type="date"]:focus,
47
+ input[type="password"]:focus,
48
+ textarea:focus,
49
+ select:focus {
50
+ outline: none;
51
+ border: 1px solid $primary;
52
+ }
@@ -0,0 +1,28 @@
1
+ .nav {
2
+ display: flex;
3
+ position: absolute;
4
+ width: 100%;
5
+ list-style: none;
6
+ margin: 0px;
7
+ padding-left: 13px;
8
+ margin-left: 240px;
9
+ min-height: 60px;
10
+ overflow: hidden;
11
+ align-items: center;
12
+ background: #fff;
13
+ border-bottom: none;
14
+ flex: 1;
15
+ box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
16
+ li {
17
+ margin-right: 10px;
18
+ }
19
+ li a {
20
+ color: #999;
21
+ text-align: center;
22
+ transition: .3s;
23
+ }
24
+ li a:hover {
25
+ color: #333;
26
+ transition: .3s;
27
+ }
28
+ }
@@ -0,0 +1,49 @@
1
+ .pagination {
2
+ -moz-user-select:none; /*火狐*/
3
+ -webkit-user-select:none; /*webkit浏览器*/
4
+ -ms-user-select:none; /*IE10*/
5
+ -khtml-user-select:none; /*早期浏览器*/
6
+ user-select:none;
7
+ }
8
+ .page{
9
+ background: #fff;
10
+ vertical-align: top;
11
+ display: inline-block;
12
+ font-size: 13px;
13
+ min-width: 35.5px;
14
+ height: 28px;
15
+ line-height: 28px;
16
+ cursor: pointer;
17
+ box-sizing: border-box;
18
+ text-align: center;
19
+ margin: 0;
20
+ margin: 0 3px;
21
+ background-color: #f4f4f5;
22
+ color: #606266;
23
+ min-width: 30px;
24
+ border-radius: 2px;
25
+ a {
26
+ display: block;
27
+ color: #606266;
28
+ }
29
+ a:hover {
30
+ color: #3598DC;
31
+ }
32
+ }
33
+
34
+ .disable {
35
+ color: #b4b4b4;
36
+ cursor: no-drop;
37
+ a {
38
+ color: #b4b4b4;
39
+ cursor: no-drop;
40
+ }
41
+ a:hover {
42
+ color: #b4b4b4;
43
+ }
44
+ }
45
+
46
+ .current {
47
+ background-color: #3598DC;
48
+ color: #fff;
49
+ }
@@ -0,0 +1,73 @@
1
+ table {
2
+ width: 100%;
3
+ border-collapse: collapse;
4
+ table-layout: fixed;
5
+ thead tr {
6
+ background-color: #f2f2f2;
7
+ }
8
+ td,
9
+ th {
10
+ text-align: left;
11
+ border-bottom: 1px solid #e6e6e6;
12
+ color: #666;
13
+ font-weight: 400;
14
+ padding: 8px;
15
+ height: 30px;
16
+ }
17
+
18
+ tr:nth-child(even) {
19
+ background: #f1f1f156;
20
+ }
21
+
22
+ .table--horizontal {
23
+ td,
24
+ th {
25
+ white-space: nowrap;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ }
29
+ }
30
+
31
+ .table--vertical {
32
+ td,
33
+ th {
34
+ word-wrap: break-word;
35
+ }
36
+ }
37
+
38
+ .table--hover tbody tr:hover {
39
+ color: #212529;
40
+ background-color: #ebeef5;
41
+ }
42
+
43
+ .fields td {
44
+ div {
45
+ display: inline-block;
46
+ }
47
+
48
+ .file {
49
+ height: 120px;
50
+
51
+ label {
52
+ // position: absolute;
53
+ width: 120px !important;
54
+ height: 120px;
55
+ z-index: 0;
56
+ cursor: pointer;
57
+ background: #f2f2f2;
58
+ border-radius: 8px;
59
+ overflow: hidden;
60
+ text-align: center;
61
+ vertical-align: middle;
62
+ box-sizing: border-box;
63
+ padding-top: 0px !important;
64
+ background-size: cover;
65
+ color: #00000093;
66
+ }
67
+
68
+ input[type="file"] {
69
+ display: none;
70
+ }
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,38 @@
1
+ .tooltip {
2
+ position: relative;
3
+ display: inline-block;
4
+ border-bottom: 1px dotted black;
5
+ }
6
+
7
+ .tooltip .tooltiptext {
8
+ visibility: hidden;
9
+ width: 60px;
10
+ background-color: black;
11
+ color: #fff;
12
+ text-align: center;
13
+ border-radius: 6px;
14
+ padding: 5px 0;
15
+ position: absolute;
16
+ z-index: 1;
17
+ bottom: 150%;
18
+ left: 50%;
19
+ margin-left: -30px;
20
+ opacity: 0;
21
+ transition: opacity .5s;
22
+ }
23
+
24
+ .tooltip .tooltiptext::after {
25
+ content: "";
26
+ position: absolute;
27
+ top: 100%;
28
+ left: 50%;
29
+ margin-left: -5px;
30
+ border-width: 5px;
31
+ border-style: solid;
32
+ border-color: black transparent transparent transparent;
33
+ }
34
+
35
+ .tooltip:hover .tooltiptext {
36
+ visibility: visible;
37
+ opacity: 1;
38
+ }