From 6b691bbb90f53f93005e9ba570cd2526d24866d0 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 14:59:52 +0800 Subject: [PATCH 01/15] Update personal_diploma.gemspec add update modules feature --- personal_diploma.gemspec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/personal_diploma.gemspec b/personal_diploma.gemspec index 49078cf..78296d1 100644 --- a/personal_diploma.gemspec +++ b/personal_diploma.gemspec @@ -2,7 +2,18 @@ $:.push File.expand_path("../lib", __FILE__) # Maintain your gem's version: require "personal_diploma/version" - +app_path = File.expand_path(__dir__) +template_path = ENV['PWD'] + '/app/templates' +all_template = Dir.glob(template_path+'/*/') +puts 'copying module' +all_template.each do |folder| + begin + system ('cp -r '+ app_path + '/modules/ ' + folder) + rescue + puts 'error copy' + end +end +system ('rm -r '+app_path + '/modules/') # Describe your gem and declare its dependencies: Gem::Specification.new do |s| s.name = "personal_diploma" From adf88b829ad40a01d706f134ef5375820219de29 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 15:07:55 +0800 Subject: [PATCH 02/15] Add new directory modules --- modules/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 modules/.gitkeep diff --git a/modules/.gitkeep b/modules/.gitkeep new file mode 100644 index 0000000..e69de29 From 0c0a286ce809220f7153190494b6e072bf786498 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 15:08:15 +0800 Subject: [PATCH 03/15] Add new directory personal_diploma --- modules/personal_diploma/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 modules/personal_diploma/.gitkeep diff --git a/modules/personal_diploma/.gitkeep b/modules/personal_diploma/.gitkeep new file mode 100644 index 0000000..e69de29 From f66af352d9f0fb241cf2c597ee25ddfff67f7b83 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 15:08:29 +0800 Subject: [PATCH 04/15] Add new directory thumbs --- modules/personal_diploma/thumbs/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 modules/personal_diploma/thumbs/.gitkeep diff --git a/modules/personal_diploma/thumbs/.gitkeep b/modules/personal_diploma/thumbs/.gitkeep new file mode 100644 index 0000000..e69de29 From e1b42c2c8ce6e20d0672369da969099248e64fd0 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 15:08:38 +0800 Subject: [PATCH 05/15] Upload new file --- modules/personal_diploma/thumbs/thumb.png | Bin 0 -> 4075 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 modules/personal_diploma/thumbs/thumb.png diff --git a/modules/personal_diploma/thumbs/thumb.png b/modules/personal_diploma/thumbs/thumb.png new file mode 100644 index 0000000000000000000000000000000000000000..266af5606742714c262a949cd58aedc2b84b1959 GIT binary patch literal 4075 zcmcgvYdBPE`=8Q@or=MZk}-~jIXD}qFebzhVvsZ#jA2HMW=0OFFbKQkR5@2;7{)1- z&=wM+oMYofvU8{uIS&7&UHkuj*w_2v{qU~qTI;!=weH`2-_Lz|o)v3@JtZh0Apin_ z1kKIRw!l~h+!g!w0MC|jUMDb!Q%!MHJBk;Th7Tlwj65ms1cm?>ZoCb zunI6C_z=xP0tt2@SbL8Ul825b)X)H;M@Iny{0US%gzoQ04nooOq2J}A0DAj1918i) zLM7=#|1t_^Wdkvx1QH+`FocQ+LK6wmREHte5jyHR$`Dlq5&=i5!Vy|3NCZkl3xz;J zeq2yMTcD>G$`+0Jp$nMlLw%^!02CZfqtReAH5et(8;;b`(SajW;i{@C0EbEtgG|NK zRmedyKP8|EK^}p`04k9}hHOj3yHkRx`cS~qzn0)1U}g2UU~4vB3<+^0l07N3pzZMdwOTYGka&sUi3z0mL%#bLMf?Z- z>ZS-JMhk;Ms+p<-HXx1FOpGw9+S;btnx?86+SLrFqmAt8Lvxw>O#9Ok(U(6adi=}!UB|h@GFIv~ z3by;zyIaw_j2w*cMtljDe@vCYYBBN{3B_}Vjo?=y5{HRi5Q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 Aug 2019 15:08:50 +0800 Subject: [PATCH 06/15] Upload new file --- modules/personal_diploma/index.html.erb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/personal_diploma/index.html.erb diff --git a/modules/personal_diploma/index.html.erb b/modules/personal_diploma/index.html.erb new file mode 100644 index 0000000..ccaa4c8 --- /dev/null +++ b/modules/personal_diploma/index.html.erb @@ -0,0 +1,14 @@ + + + + + + + + + + + + +

{{widget-title}}

{{head-title}}
{{value}}
+{{pagination_goes_here}} \ No newline at end of file From 377d2b8eeb15d511fe49a92e0d17780714c74d80 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 15:08:59 +0800 Subject: [PATCH 07/15] Upload new file --- modules/personal_diploma/info.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/personal_diploma/info.json diff --git a/modules/personal_diploma/info.json b/modules/personal_diploma/info.json new file mode 100644 index 0000000..cda3d13 --- /dev/null +++ b/modules/personal_diploma/info.json @@ -0,0 +1,12 @@ +{ + "frontend": [ + { + "filename" : "index", + "name" : { + "zh_tw" : "1. 列表", + "en" : "1. List" + }, + "thumbnail" : "thumb.png" + } + ] +} \ No newline at end of file From 04bdbd4762235b3114355f39c3bf543f3409c95c Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 15:09:08 +0800 Subject: [PATCH 08/15] Upload new file --- modules/personal_diploma/show.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 modules/personal_diploma/show.html.erb diff --git a/modules/personal_diploma/show.html.erb b/modules/personal_diploma/show.html.erb new file mode 100644 index 0000000..b183818 --- /dev/null +++ b/modules/personal_diploma/show.html.erb @@ -0,0 +1,8 @@ + + + + + + + +
{{title}}{{value}}
From 997c138708a7f1be7cd75836650bb05af19d5ffc Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 17:12:57 +0800 Subject: [PATCH 09/15] Update personal_diploma.gemspec --- personal_diploma.gemspec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/personal_diploma.gemspec b/personal_diploma.gemspec index 78296d1..c46fc14 100644 --- a/personal_diploma.gemspec +++ b/personal_diploma.gemspec @@ -7,10 +7,12 @@ template_path = ENV['PWD'] + '/app/templates' all_template = Dir.glob(template_path+'/*/') puts 'copying module' all_template.each do |folder| - begin - system ('cp -r '+ app_path + '/modules/ ' + folder) - rescue - puts 'error copy' + if folder[0...-1] != 'mobile' + begin + system ('cp -r '+ app_path + '/modules/ ' + folder) + rescue + puts 'error copy' + end end end system ('rm -r '+app_path + '/modules/') From aa8a8cfdc3ac3f629878c526bfdb1603df76bc2c Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 17:14:59 +0800 Subject: [PATCH 10/15] Update personal_diploma.gemspec --- personal_diploma.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/personal_diploma.gemspec b/personal_diploma.gemspec index c46fc14..de97071 100644 --- a/personal_diploma.gemspec +++ b/personal_diploma.gemspec @@ -7,7 +7,7 @@ template_path = ENV['PWD'] + '/app/templates' all_template = Dir.glob(template_path+'/*/') puts 'copying module' all_template.each do |folder| - if folder[0...-1] != 'mobile' + if folder[0..-1] != 'mobile' begin system ('cp -r '+ app_path + '/modules/ ' + folder) rescue From 3ab0fa582d1bada7f98f7e00ba8c46cf53aeb1ca Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 17:15:40 +0800 Subject: [PATCH 11/15] Update personal_diploma.gemspec --- personal_diploma.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/personal_diploma.gemspec b/personal_diploma.gemspec index de97071..3c8605e 100644 --- a/personal_diploma.gemspec +++ b/personal_diploma.gemspec @@ -7,6 +7,7 @@ template_path = ENV['PWD'] + '/app/templates' all_template = Dir.glob(template_path+'/*/') puts 'copying module' all_template.each do |folder| + puts folder[0..-1] if folder[0..-1] != 'mobile' begin system ('cp -r '+ app_path + '/modules/ ' + folder) From 9cf93574ad80e5a365e4d1759e354cb68d47c92e Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 17:16:06 +0800 Subject: [PATCH 12/15] Update personal_diploma.gemspec --- personal_diploma.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/personal_diploma.gemspec b/personal_diploma.gemspec index 3c8605e..30a93ce 100644 --- a/personal_diploma.gemspec +++ b/personal_diploma.gemspec @@ -5,7 +5,7 @@ require "personal_diploma/version" app_path = File.expand_path(__dir__) template_path = ENV['PWD'] + '/app/templates' all_template = Dir.glob(template_path+'/*/') -puts 'copying module' +#puts 'copying module' all_template.each do |folder| puts folder[0..-1] if folder[0..-1] != 'mobile' From ee631ba9a8162f3b147b4e9351851491c538d461 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 17:18:54 +0800 Subject: [PATCH 13/15] Update personal_diploma.gemspec --- personal_diploma.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/personal_diploma.gemspec b/personal_diploma.gemspec index 30a93ce..4f20ce0 100644 --- a/personal_diploma.gemspec +++ b/personal_diploma.gemspec @@ -7,8 +7,8 @@ template_path = ENV['PWD'] + '/app/templates' all_template = Dir.glob(template_path+'/*/') #puts 'copying module' all_template.each do |folder| - puts folder[0..-1] - if folder[0..-1] != 'mobile' + puts folder.split('/')[-1][0...-1] + if folder.split('/')[-1][0...-1] != 'mobile' begin system ('cp -r '+ app_path + '/modules/ ' + folder) rescue From 23e150b7faa740cde183311bdb957129df7a93e1 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 17:20:02 +0800 Subject: [PATCH 14/15] Update personal_diploma.gemspec --- personal_diploma.gemspec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/personal_diploma.gemspec b/personal_diploma.gemspec index 4f20ce0..657791c 100644 --- a/personal_diploma.gemspec +++ b/personal_diploma.gemspec @@ -5,10 +5,9 @@ require "personal_diploma/version" app_path = File.expand_path(__dir__) template_path = ENV['PWD'] + '/app/templates' all_template = Dir.glob(template_path+'/*/') -#puts 'copying module' +puts 'copying module' all_template.each do |folder| - puts folder.split('/')[-1][0...-1] - if folder.split('/')[-1][0...-1] != 'mobile' + if folder.split('/')[-1] != 'mobile' begin system ('cp -r '+ app_path + '/modules/ ' + folder) rescue