layui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/CODE_OF_CONDUCT.md +74 -0
  4. data/Gemfile +6 -0
  5. data/Gemfile.lock +19 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +44 -0
  8. data/Rakefile +2 -0
  9. data/app/assets/fonts/iconfont.eot +0 -0
  10. data/app/assets/fonts/iconfont.svg +554 -0
  11. data/app/assets/fonts/iconfont.ttf +0 -0
  12. data/app/assets/fonts/iconfont.woff +0 -0
  13. data/app/assets/fonts/iconfont.woff2 +0 -0
  14. data/app/assets/images/face/0.gif +0 -0
  15. data/app/assets/images/face/1.gif +0 -0
  16. data/app/assets/images/face/10.gif +0 -0
  17. data/app/assets/images/face/11.gif +0 -0
  18. data/app/assets/images/face/12.gif +0 -0
  19. data/app/assets/images/face/13.gif +0 -0
  20. data/app/assets/images/face/14.gif +0 -0
  21. data/app/assets/images/face/15.gif +0 -0
  22. data/app/assets/images/face/16.gif +0 -0
  23. data/app/assets/images/face/17.gif +0 -0
  24. data/app/assets/images/face/18.gif +0 -0
  25. data/app/assets/images/face/19.gif +0 -0
  26. data/app/assets/images/face/2.gif +0 -0
  27. data/app/assets/images/face/20.gif +0 -0
  28. data/app/assets/images/face/21.gif +0 -0
  29. data/app/assets/images/face/22.gif +0 -0
  30. data/app/assets/images/face/23.gif +0 -0
  31. data/app/assets/images/face/24.gif +0 -0
  32. data/app/assets/images/face/25.gif +0 -0
  33. data/app/assets/images/face/26.gif +0 -0
  34. data/app/assets/images/face/27.gif +0 -0
  35. data/app/assets/images/face/28.gif +0 -0
  36. data/app/assets/images/face/29.gif +0 -0
  37. data/app/assets/images/face/3.gif +0 -0
  38. data/app/assets/images/face/30.gif +0 -0
  39. data/app/assets/images/face/31.gif +0 -0
  40. data/app/assets/images/face/32.gif +0 -0
  41. data/app/assets/images/face/33.gif +0 -0
  42. data/app/assets/images/face/34.gif +0 -0
  43. data/app/assets/images/face/35.gif +0 -0
  44. data/app/assets/images/face/36.gif +0 -0
  45. data/app/assets/images/face/37.gif +0 -0
  46. data/app/assets/images/face/38.gif +0 -0
  47. data/app/assets/images/face/39.gif +0 -0
  48. data/app/assets/images/face/4.gif +0 -0
  49. data/app/assets/images/face/40.gif +0 -0
  50. data/app/assets/images/face/41.gif +0 -0
  51. data/app/assets/images/face/42.gif +0 -0
  52. data/app/assets/images/face/43.gif +0 -0
  53. data/app/assets/images/face/44.gif +0 -0
  54. data/app/assets/images/face/45.gif +0 -0
  55. data/app/assets/images/face/46.gif +0 -0
  56. data/app/assets/images/face/47.gif +0 -0
  57. data/app/assets/images/face/48.gif +0 -0
  58. data/app/assets/images/face/49.gif +0 -0
  59. data/app/assets/images/face/5.gif +0 -0
  60. data/app/assets/images/face/50.gif +0 -0
  61. data/app/assets/images/face/51.gif +0 -0
  62. data/app/assets/images/face/52.gif +0 -0
  63. data/app/assets/images/face/53.gif +0 -0
  64. data/app/assets/images/face/54.gif +0 -0
  65. data/app/assets/images/face/55.gif +0 -0
  66. data/app/assets/images/face/56.gif +0 -0
  67. data/app/assets/images/face/57.gif +0 -0
  68. data/app/assets/images/face/58.gif +0 -0
  69. data/app/assets/images/face/59.gif +0 -0
  70. data/app/assets/images/face/6.gif +0 -0
  71. data/app/assets/images/face/60.gif +0 -0
  72. data/app/assets/images/face/61.gif +0 -0
  73. data/app/assets/images/face/62.gif +0 -0
  74. data/app/assets/images/face/63.gif +0 -0
  75. data/app/assets/images/face/64.gif +0 -0
  76. data/app/assets/images/face/65.gif +0 -0
  77. data/app/assets/images/face/66.gif +0 -0
  78. data/app/assets/images/face/67.gif +0 -0
  79. data/app/assets/images/face/68.gif +0 -0
  80. data/app/assets/images/face/69.gif +0 -0
  81. data/app/assets/images/face/7.gif +0 -0
  82. data/app/assets/images/face/70.gif +0 -0
  83. data/app/assets/images/face/71.gif +0 -0
  84. data/app/assets/images/face/8.gif +0 -0
  85. data/app/assets/images/face/9.gif +0 -0
  86. data/app/assets/javascripts/lay/modules/carousel.js +2 -0
  87. data/app/assets/javascripts/lay/modules/code.js +2 -0
  88. data/app/assets/javascripts/lay/modules/colorpicker.js +2 -0
  89. data/app/assets/javascripts/lay/modules/element.js +2 -0
  90. data/app/assets/javascripts/lay/modules/flow.js +2 -0
  91. data/app/assets/javascripts/lay/modules/form.js +2 -0
  92. data/app/assets/javascripts/lay/modules/jquery.js +5 -0
  93. data/app/assets/javascripts/lay/modules/laydate.js +2 -0
  94. data/app/assets/javascripts/lay/modules/layedit.js +2 -0
  95. data/app/assets/javascripts/lay/modules/layer.js.erb +368 -0
  96. data/app/assets/javascripts/lay/modules/laypage.js +2 -0
  97. data/app/assets/javascripts/lay/modules/laytpl.js +2 -0
  98. data/app/assets/javascripts/lay/modules/mobile.js +2 -0
  99. data/app/assets/javascripts/lay/modules/rate.js +2 -0
  100. data/app/assets/javascripts/lay/modules/slider.js +2 -0
  101. data/app/assets/javascripts/lay/modules/table.js +2 -0
  102. data/app/assets/javascripts/lay/modules/transfer.js +2 -0
  103. data/app/assets/javascripts/lay/modules/tree.js +2 -0
  104. data/app/assets/javascripts/lay/modules/upload.js +2 -0
  105. data/app/assets/javascripts/lay/modules/util.js +2 -0
  106. data/app/assets/javascripts/layui.js +120 -0
  107. data/app/assets/stylesheets/layui.mobile.scss +709 -0
  108. data/app/assets/stylesheets/layui.scss +5613 -0
  109. data/app/assets/stylesheets/modules/code.scss +74 -0
  110. data/app/assets/stylesheets/modules/laydate/default/laydate.css +2 -0
  111. data/app/assets/stylesheets/modules/layer/default/icon-ext.png +0 -0
  112. data/app/assets/stylesheets/modules/layer/default/icon.png +0 -0
  113. data/app/assets/stylesheets/modules/layer/default/layer.scss +948 -0
  114. data/app/assets/stylesheets/modules/layer/default/loading-0.gif +0 -0
  115. data/app/assets/stylesheets/modules/layer/default/loading-1.gif +0 -0
  116. data/app/assets/stylesheets/modules/layer/default/loading-2.gif +0 -0
  117. data/bin/console +14 -0
  118. data/bin/setup +8 -0
  119. data/layui.gemspec +29 -0
  120. data/lib/layui.rb +6 -0
  121. data/lib/layui/engine.rb +10 -0
  122. data/lib/layui/version.rb +3 -0
  123. metadata +167 -0
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "layui"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,29 @@
1
+ require_relative 'lib/layui/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "layui"
5
+ spec.version = Layui::VERSION
6
+ spec.authors = ["aiyuhang"]
7
+ spec.email = ["738138071@qq.com"]
8
+
9
+ spec.summary = %q{layui 是一款采用自身模块规范编写的前端 UI 框架,遵循原生 HTML/CSS/JS 的书写与组织形式,门槛极低,拿来即用。}
10
+ spec.description = %q{layui外在极简,却又不失饱满的内在,体积轻盈,组件丰盈,从核心代码到 API 的每一处细节都经过精心雕琢,非常适合界面的快速开发。layui 首个版本发布于 2016 年金秋,她区别于那些基于 MVVM 底层的 UI 框架,却并非逆道而行,而是信奉返璞归真之道。准确地说,她更多是为服务端程序员量身定做,你无需涉足各种前端工具的复杂配置,只需面对浏览器本身,让一切你所需要的元素与交互,从这里信手拈来。}
11
+ spec.homepage = "https://github.com/witcan/layui"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+ # spec.metadata["allowed_push_host"] = "https://github.com/witcan/layui"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/witcan/layui"
19
+ # spec.metadata["changelog_uri"] = "https://github.com/witcan/layui"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+ end
@@ -0,0 +1,6 @@
1
+ require "layui/version"
2
+ require "layui/engine" if defined?(::Rails)
3
+ module Layui
4
+ class Error < StandardError; end
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,10 @@
1
+ module Layui
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ config.assets.precompile += %w(
5
+ layui.css
6
+ layui.js
7
+ )
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module Layui
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,167 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: layui
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - aiyuhang
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-12-27 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: layui外在极简,却又不失饱满的内在,体积轻盈,组件丰盈,从核心代码到 API 的每一处细节都经过精心雕琢,非常适合界面的快速开发。layui
14
+ 首个版本发布于 2016 年金秋,她区别于那些基于 MVVM 底层的 UI 框架,却并非逆道而行,而是信奉返璞归真之道。准确地说,她更多是为服务端程序员量身定做,你无需涉足各种前端工具的复杂配置,只需面对浏览器本身,让一切你所需要的元素与交互,从这里信手拈来。
15
+ email:
16
+ - 738138071@qq.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - ".gitignore"
22
+ - CODE_OF_CONDUCT.md
23
+ - Gemfile
24
+ - Gemfile.lock
25
+ - LICENSE.txt
26
+ - README.md
27
+ - Rakefile
28
+ - app/assets/fonts/iconfont.eot
29
+ - app/assets/fonts/iconfont.svg
30
+ - app/assets/fonts/iconfont.ttf
31
+ - app/assets/fonts/iconfont.woff
32
+ - app/assets/fonts/iconfont.woff2
33
+ - app/assets/images/face/0.gif
34
+ - app/assets/images/face/1.gif
35
+ - app/assets/images/face/10.gif
36
+ - app/assets/images/face/11.gif
37
+ - app/assets/images/face/12.gif
38
+ - app/assets/images/face/13.gif
39
+ - app/assets/images/face/14.gif
40
+ - app/assets/images/face/15.gif
41
+ - app/assets/images/face/16.gif
42
+ - app/assets/images/face/17.gif
43
+ - app/assets/images/face/18.gif
44
+ - app/assets/images/face/19.gif
45
+ - app/assets/images/face/2.gif
46
+ - app/assets/images/face/20.gif
47
+ - app/assets/images/face/21.gif
48
+ - app/assets/images/face/22.gif
49
+ - app/assets/images/face/23.gif
50
+ - app/assets/images/face/24.gif
51
+ - app/assets/images/face/25.gif
52
+ - app/assets/images/face/26.gif
53
+ - app/assets/images/face/27.gif
54
+ - app/assets/images/face/28.gif
55
+ - app/assets/images/face/29.gif
56
+ - app/assets/images/face/3.gif
57
+ - app/assets/images/face/30.gif
58
+ - app/assets/images/face/31.gif
59
+ - app/assets/images/face/32.gif
60
+ - app/assets/images/face/33.gif
61
+ - app/assets/images/face/34.gif
62
+ - app/assets/images/face/35.gif
63
+ - app/assets/images/face/36.gif
64
+ - app/assets/images/face/37.gif
65
+ - app/assets/images/face/38.gif
66
+ - app/assets/images/face/39.gif
67
+ - app/assets/images/face/4.gif
68
+ - app/assets/images/face/40.gif
69
+ - app/assets/images/face/41.gif
70
+ - app/assets/images/face/42.gif
71
+ - app/assets/images/face/43.gif
72
+ - app/assets/images/face/44.gif
73
+ - app/assets/images/face/45.gif
74
+ - app/assets/images/face/46.gif
75
+ - app/assets/images/face/47.gif
76
+ - app/assets/images/face/48.gif
77
+ - app/assets/images/face/49.gif
78
+ - app/assets/images/face/5.gif
79
+ - app/assets/images/face/50.gif
80
+ - app/assets/images/face/51.gif
81
+ - app/assets/images/face/52.gif
82
+ - app/assets/images/face/53.gif
83
+ - app/assets/images/face/54.gif
84
+ - app/assets/images/face/55.gif
85
+ - app/assets/images/face/56.gif
86
+ - app/assets/images/face/57.gif
87
+ - app/assets/images/face/58.gif
88
+ - app/assets/images/face/59.gif
89
+ - app/assets/images/face/6.gif
90
+ - app/assets/images/face/60.gif
91
+ - app/assets/images/face/61.gif
92
+ - app/assets/images/face/62.gif
93
+ - app/assets/images/face/63.gif
94
+ - app/assets/images/face/64.gif
95
+ - app/assets/images/face/65.gif
96
+ - app/assets/images/face/66.gif
97
+ - app/assets/images/face/67.gif
98
+ - app/assets/images/face/68.gif
99
+ - app/assets/images/face/69.gif
100
+ - app/assets/images/face/7.gif
101
+ - app/assets/images/face/70.gif
102
+ - app/assets/images/face/71.gif
103
+ - app/assets/images/face/8.gif
104
+ - app/assets/images/face/9.gif
105
+ - app/assets/javascripts/lay/modules/carousel.js
106
+ - app/assets/javascripts/lay/modules/code.js
107
+ - app/assets/javascripts/lay/modules/colorpicker.js
108
+ - app/assets/javascripts/lay/modules/element.js
109
+ - app/assets/javascripts/lay/modules/flow.js
110
+ - app/assets/javascripts/lay/modules/form.js
111
+ - app/assets/javascripts/lay/modules/jquery.js
112
+ - app/assets/javascripts/lay/modules/laydate.js
113
+ - app/assets/javascripts/lay/modules/layedit.js
114
+ - app/assets/javascripts/lay/modules/layer.js.erb
115
+ - app/assets/javascripts/lay/modules/laypage.js
116
+ - app/assets/javascripts/lay/modules/laytpl.js
117
+ - app/assets/javascripts/lay/modules/mobile.js
118
+ - app/assets/javascripts/lay/modules/rate.js
119
+ - app/assets/javascripts/lay/modules/slider.js
120
+ - app/assets/javascripts/lay/modules/table.js
121
+ - app/assets/javascripts/lay/modules/transfer.js
122
+ - app/assets/javascripts/lay/modules/tree.js
123
+ - app/assets/javascripts/lay/modules/upload.js
124
+ - app/assets/javascripts/lay/modules/util.js
125
+ - app/assets/javascripts/layui.js
126
+ - app/assets/stylesheets/layui.mobile.scss
127
+ - app/assets/stylesheets/layui.scss
128
+ - app/assets/stylesheets/modules/code.scss
129
+ - app/assets/stylesheets/modules/laydate/default/laydate.css
130
+ - app/assets/stylesheets/modules/layer/default/icon-ext.png
131
+ - app/assets/stylesheets/modules/layer/default/icon.png
132
+ - app/assets/stylesheets/modules/layer/default/layer.scss
133
+ - app/assets/stylesheets/modules/layer/default/loading-0.gif
134
+ - app/assets/stylesheets/modules/layer/default/loading-1.gif
135
+ - app/assets/stylesheets/modules/layer/default/loading-2.gif
136
+ - bin/console
137
+ - bin/setup
138
+ - layui.gemspec
139
+ - lib/layui.rb
140
+ - lib/layui/engine.rb
141
+ - lib/layui/version.rb
142
+ homepage: https://github.com/witcan/layui
143
+ licenses:
144
+ - MIT
145
+ metadata:
146
+ homepage_uri: https://github.com/witcan/layui
147
+ source_code_uri: https://github.com/witcan/layui
148
+ post_install_message:
149
+ rdoc_options: []
150
+ require_paths:
151
+ - lib
152
+ required_ruby_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: 2.3.0
157
+ required_rubygems_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ requirements: []
163
+ rubygems_version: 3.0.8
164
+ signing_key:
165
+ specification_version: 4
166
+ summary: layui 是一款采用自身模块规范编写的前端 UI 框架,遵循原生 HTML/CSS/JS 的书写与组织形式,门槛极低,拿来即用。
167
+ test_files: []