mindapp2 0.1.1.4 → 0.1.1.5
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +1 -1
- data/README.md +5 -3
- data/lib/generators/mindapp/install_generator.rb +7 -6
- data/lib/generators/mindapp/templates/.env +2 -0
- data/lib/generators/mindapp/templates/app/controllers/application_controller.rb +5 -6
- data/lib/generators/mindapp/templates/app/controllers/mindapp_controller.rb +3 -3
- data/lib/generators/mindapp/templates/app/mindapp/index.mm +6 -5
- data/lib/generators/mindapp/templates/app/views/layouts/_full.haml +1 -1
- data/lib/generators/mindapp/templates/app/views/mindapp/doc-thai.md +37 -0
- data/lib/generators/mindapp/templates/app/views/mindapp/doc.md +13 -14
- data/lib/generators/mindapp/templates/app/views/mindapp/index.html.haml +6 -4
- data/lib/mindapp2/helpers.rb +1 -1
- data/lib/mindapp2/version.rb +1 -1
- metadata +5 -6
- data/CODE_OF_CONDUCT.md +0 -74
- data/lib/generators/mindapp/templates/app/assets/images/mylogo.png +0 -0
- data/lib/generators/mindapp/templates/app/views/layouts/_top.html.erb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e333cc8442733d1714cc9e246f72ed595febf092
|
4
|
+
data.tar.gz: 8513f6a96faf8052ac303742f219553073988935
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4332c94f636a7f6cd2b47a1606ee9836ff63ba8a1683e10e37779250da9a555c07e343d689f9596bf555187c20255a9dffdffacf6b363bf0a07690c8eb46ab9
|
7
|
+
data.tar.gz: ae60c74c9e1054076dcb8a1486769873c84932546ec5e11b9254605929a24901f8e136e3fe34c9ad2edb7b781337e42e528f0099b90de519a919c641ad7939f3
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
# Mindapp2
|
2
|
-
## v0.1.1.
|
2
|
+
## v0.1.1.5
|
3
3
|
|
4
4
|
This is an extended version of Mindapp with mixed workflow and rails app. Mindapp2 maintain workflow feature with upgrade to most update ruby and rails.
|
5
5
|
|
6
6
|
## Changelog
|
7
7
|
|
8
|
-
* update for Rails 5.1.
|
8
|
+
* update for Rails 5.1.4
|
9
|
+
* add facebook login [required: .env with facebook api and password]
|
10
|
+
|
9
11
|
|
10
12
|
## Prerequisites
|
11
13
|
|
@@ -28,7 +30,7 @@ These versions works for sure but others may do.
|
|
28
30
|
Supposed we want to create ecommerce web site, first create a Rails
|
29
31
|
app without ActiveRecord
|
30
32
|
|
31
|
-
$ rails new
|
33
|
+
$ rails new YOURAPP --skip-test-unit --skip-bundle --skip-active-record
|
32
34
|
|
33
35
|
## Add mindapp to your Gemfile:
|
34
36
|
|
@@ -22,12 +22,6 @@ module Mindapp
|
|
22
22
|
|
23
23
|
def setup_env
|
24
24
|
create_file 'README.md', ''
|
25
|
-
# bug in mongo ruby driver 1.6.1, wait for mongoid 2.4.7
|
26
|
-
# gem "mongo", "1.5.1"
|
27
|
-
# gem "bson_ext", "1.5.1"
|
28
|
-
# gem "mongoid"
|
29
|
-
# run "bundle install"
|
30
|
-
# generate "rspec:install"
|
31
25
|
inject_into_file 'config/application.rb', :after => 'require "active_resource/railtie"' do
|
32
26
|
"\nrequire 'mongoid/railtie'\n"
|
33
27
|
"\nrequire 'rexml/document'\n"
|
@@ -91,6 +85,10 @@ Mongoid::Config.belongs_to_required_by_default = false
|
|
91
85
|
inject_into_file 'config/environments/production.rb', :after => 'config.assets.compile = false' do
|
92
86
|
"\n config.assets.compile = true"
|
93
87
|
end
|
88
|
+
inject_into_file 'config/initializers/assets.rb', :after => '# Precompile additional assets.
|
89
|
+
' do
|
90
|
+
"\nRails.application.config.assets.precompile += %w( sarabun.css )\n"
|
91
|
+
end
|
94
92
|
end
|
95
93
|
|
96
94
|
def setup_omniauth
|
@@ -124,10 +122,13 @@ end
|
|
124
122
|
|
125
123
|
def gen_image_store
|
126
124
|
copy_file "cloudinary.yml","config/cloudinary.yml"
|
125
|
+
copy_file ".env",".env"
|
126
|
+
|
127
127
|
empty_directory "upload" # create upload directory just in case
|
128
128
|
end
|
129
129
|
|
130
130
|
def setup_gems
|
131
|
+
gem 'maruku', '~> 0.7.3'
|
131
132
|
gem 'rouge'
|
132
133
|
gem 'normalize-rails'
|
133
134
|
gem "font-awesome-rails"
|
@@ -1,13 +1,12 @@
|
|
1
1
|
class ApplicationController < ActionController::Base
|
2
2
|
protect_from_forgery with: :exception
|
3
3
|
# https://www.cookieshq.co.uk/posts/easy-seo-metatags-with-rails-4#a-word-about-turbolinks
|
4
|
-
before_action :prepare_meta_tags, if:
|
5
|
-
|
4
|
+
before_action :prepare_meta_tags, if: -> { request.get? }
|
6
5
|
def prepare_meta_tags(options={})
|
7
|
-
site_name = "
|
6
|
+
site_name = "Mindapp2"
|
8
7
|
title = [controller_name, action_name].join(" ")
|
9
|
-
description = "
|
10
|
-
image = options[:image] || "
|
8
|
+
description = "Mindapp2 Tools to create visual programming using Freemind by Prateep Kul & Korakot Leemakdej"
|
9
|
+
image = options[:image] || href="/assets/images/logo.png"
|
11
10
|
current_url = request.url
|
12
11
|
|
13
12
|
# Let's prepare a nice set of defaults
|
@@ -16,7 +15,7 @@ class ApplicationController < ActionController::Base
|
|
16
15
|
title: title,
|
17
16
|
image: image,
|
18
17
|
description: description,
|
19
|
-
keywords: %w[
|
18
|
+
keywords: %w[Mindapp2 Rails ruby Prateep Kul],
|
20
19
|
twitter: {
|
21
20
|
site_name: site_name,
|
22
21
|
site: '@4dcity.com',
|
@@ -303,13 +303,13 @@ class MindappController < ApplicationController
|
|
303
303
|
require 'rdoc'
|
304
304
|
@app= get_app
|
305
305
|
@intro = File.read('README.md')
|
306
|
-
@print= "<div align='right'><img src='/assets/printer.png'/> <a href='/mindapp/doc_print' target='_blank'
|
306
|
+
@print= "<div align='right'><img src='/assets/printer.png'/> <a href='/mindapp/doc_print' target='_blank'/>Print</a></div>"
|
307
307
|
doc= render_to_string 'doc.md', :layout => false
|
308
308
|
html= Maruku.new(doc).to_html
|
309
309
|
File.open('public/doc.html','w') {|f| f.puts html }
|
310
310
|
respond_to do |format|
|
311
311
|
format.html {
|
312
|
-
render :
|
312
|
+
render :plain=> @print+html, :layout => 'layouts/_page'
|
313
313
|
# render :text=> Maruku.new(doc).to_html, :layout => false
|
314
314
|
# format.html {
|
315
315
|
# h = RDoc::Markup::ToHtml.new
|
@@ -322,7 +322,7 @@ class MindappController < ApplicationController
|
|
322
322
|
# system('pdflatex tmp/doc.tex ')
|
323
323
|
# send_file( 'tmp/doc.pdf', :type => ‘application/pdf’,
|
324
324
|
# :disposition => ‘inline’, :filename => 'doc.pdf')
|
325
|
-
render :
|
325
|
+
render :plain=>'done'
|
326
326
|
}
|
327
327
|
end
|
328
328
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
|
3
3
|
<node CREATED="1273819432637" ID="ID_1098419600" MODIFIED="1334737006485" TEXT="Mindapp">
|
4
4
|
<node CREATED="1273819462973" ID="ID_282419531" MODIFIED="1493705904561" POSITION="right" TEXT="services">
|
5
|
-
<node CREATED="1275756501221" ID="ID_1720745721" MODIFIED="
|
5
|
+
<node CREATED="1275756501221" FOLDED="true" ID="ID_1720745721" MODIFIED="1507471632977" TEXT="users:User">
|
6
6
|
<node CREATED="1278491598711" ID="ID_1662699954" MODIFIED="1494393920347" TEXT="role:m"/>
|
7
7
|
<node CREATED="1279700865182" ID="ID_1266797279" MODIFIED="1357798847781" TEXT="link:info: /users"/>
|
8
8
|
<node CREATED="1319015338880" ID="ID_189841353" MODIFIED="1330477824203" TEXT="link:pending tasks: /mindapp/pending"/>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
</node>
|
26
26
|
</node>
|
27
27
|
</node>
|
28
|
-
<node CREATED="1275752678377" ID="ID_1348489452" MODIFIED="
|
28
|
+
<node CREATED="1275752678377" ID="ID_1348489452" MODIFIED="1507572377728" TEXT="admins:Admin">
|
29
29
|
<node CREATED="1275752688167" ID="ID_229996461" MODIFIED="1275752690948" TEXT="role:a"/>
|
30
30
|
<node CREATED="1282722836614" ID="ID_1213363124" MODIFIED="1330477902602" TEXT="edit_role:edit user role">
|
31
31
|
<node CREATED="1282722862918" ID="ID_1190117882" MODIFIED="1330477922159" TEXT="select_user:select user">
|
@@ -42,12 +42,13 @@
|
|
42
42
|
</node>
|
43
43
|
<node CREATED="1273913393454" ID="ID_1088166839" MODIFIED="1355422465435" TEXT="link: pending tasks: /mindapp/pending"/>
|
44
44
|
<node CREATED="1275790679363" ID="ID_829325467" MODIFIED="1355422470135" TEXT="link: logs: /mindapp/logs"/>
|
45
|
+
<node CREATED="1507573166973" ID="ID_351025910" MODIFIED="1507573781691" TEXT="link: docs: /mindapp/doc"/>
|
45
46
|
</node>
|
46
47
|
<node CREATED="1273706796854" ID="ID_1003882979" MODIFIED="1494393450847" TEXT="devs: Developer">
|
47
48
|
<node CREATED="1275373154914" ID="ID_340725299" MODIFIED="1275373158632" TEXT="role:d"/>
|
48
49
|
<node CREATED="1275788317299" ID="ID_716276608" MODIFIED="1359019912446" TEXT="link: error_logs: /mindapp/error_logs"/>
|
49
50
|
</node>
|
50
|
-
<node CREATED="1489875563330" ID="ID_1495015891" MODIFIED="
|
51
|
+
<node CREATED="1489875563330" FOLDED="true" ID="ID_1495015891" MODIFIED="1507248509212" TEXT="ctrs: ctrs& Menu">
|
51
52
|
<node CREATED="1489875583646" ID="ID_1796125628" MODIFIED="1494393464288" TEXT="role:a"/>
|
52
53
|
<node CREATED="1275905802131" ID="ID_1960607342" MODIFIED="1489938927874" TEXT="vfolder1:Sub Menu 1">
|
53
54
|
<node CREATED="1275756515843" ID="ID_328242903" MODIFIED="1489939229748" TEXT="viewfile1: Title 1">
|
@@ -69,7 +70,7 @@
|
|
69
70
|
</node>
|
70
71
|
</node>
|
71
72
|
</node>
|
72
|
-
<node CREATED="1493393619430" ID="ID_328863650" MODIFIED="
|
73
|
+
<node CREATED="1493393619430" ID="ID_328863650" MODIFIED="1507471634803" TEXT="articles: Article">
|
73
74
|
<node CREATED="1493419096527" ID="ID_1521905276" MODIFIED="1493478060121" TEXT="link: All Articles: /articles"/>
|
74
75
|
<node CREATED="1493489768542" ID="ID_1376361427" MODIFIED="1493768994418" TEXT="link: My article: /articles/my">
|
75
76
|
<node CREATED="1493490295677" ID="ID_628476988" MODIFIED="1493490302239" TEXT="role:m"/>
|
@@ -106,7 +107,7 @@
|
|
106
107
|
</node>
|
107
108
|
</node>
|
108
109
|
</node>
|
109
|
-
<node CREATED="1493664700564" ID="ID_704959130" MODIFIED="
|
110
|
+
<node CREATED="1493664700564" FOLDED="true" ID="ID_704959130" MODIFIED="1507383970984" TEXT="comments: Comment">
|
110
111
|
<node CREATED="1493665155709" ID="ID_1973520751" MODIFIED="1493665186791" TEXT="new_comment: New Comment">
|
111
112
|
<node CREATED="1493665192413" ID="ID_345629058" MODIFIED="1493665226422" TEXT="create">
|
112
113
|
<icon BUILTIN="bookmark"/>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
!!! 5
|
2
2
|
%html
|
3
3
|
%head
|
4
|
-
= favicon_link_tag
|
4
|
+
= favicon_link_tag
|
5
5
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
|
6
6
|
= javascript_include_tag "application", 'data-turbolinks-track': 'reload'
|
7
7
|
= csrf_meta_tags
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<style>code { font-size: 0.8em;}</style>
|
2
|
+
|
3
|
+
<%= File.read('README.md') %>
|
4
|
+
|
5
|
+
***
|
6
|
+
|
7
|
+
# คู่มือการใช้งาน
|
8
|
+
|
9
|
+
<%= render :partial=>'mindapp/modul.md', :collection=> Mindapp::Module.all.asc(:seq) %>
|
10
|
+
|
11
|
+
***
|
12
|
+
|
13
|
+
# คู่มือผู้ดูแลระบบ
|
14
|
+
|
15
|
+
## โครงสร้างข้อมูล
|
16
|
+
|
17
|
+
<%- models= @app.elements["//node[@TEXT='models']"] %>
|
18
|
+
|
19
|
+
<%= render :partial=>'mindapp/model.md', :collection=> models.map {|m| m.attributes["TEXT"] } %>
|
20
|
+
|
21
|
+
***
|
22
|
+
|
23
|
+
# ภาคผนวก
|
24
|
+
|
25
|
+
## markdown
|
26
|
+
|
27
|
+
คู่มือนี้จัดทำขึ้นโดยอัตโนมัติจาก mind map และส่วนต่างๆ ของรหัสโปรแกรม
|
28
|
+
ผู้เกี่ยวข้องสามารถเขียนวิธีการใช้งานได้อย่างอิสระ โดยใช้คำสั่ง
|
29
|
+
<a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">markdown</a>
|
30
|
+
ในการเขียนคู่มือประกอบเข้ากับส่วนต่างๆของระบบงาน ดังต่อไปนี้
|
31
|
+
|
32
|
+
* คำอธิบายระบบในภาพรวม อยู่ในไฟล์ `README.md`
|
33
|
+
* คำอธิบายระบบงาน อยู่ในไฟล์ `app/controllers/<ระบบงาน>.md`
|
34
|
+
* คำอธิบายงาน อยู่ในไฟล์ `app/views/<ระบบงาน>/<งาน>.md`
|
35
|
+
* คำอธิบายงานของ link สร้างเป็นกิ่งลูกต่อจาก link นั้น
|
36
|
+
* คำอธิบายขั้นตอน อยู่ในไฟล์ `app/views/<ระบบงาน>/<งาน>/<ขั้นตอน>.md`
|
37
|
+
* ตัวอย่างหน้าจอ อยู่ในไฟล์ `app/views/<ระบบงาน>/<งาน>/<ขั้นตอน>.png`
|
@@ -4,15 +4,15 @@
|
|
4
4
|
|
5
5
|
***
|
6
6
|
|
7
|
-
#
|
7
|
+
# Help (UNDER CONSTRUCTION: DUI)
|
8
8
|
|
9
9
|
<%= render :partial=>'mindapp/modul.md', :collection=> Mindapp::Module.all.asc(:seq) %>
|
10
10
|
|
11
11
|
***
|
12
12
|
|
13
|
-
#
|
13
|
+
# Admin
|
14
14
|
|
15
|
-
##
|
15
|
+
## Data Structure
|
16
16
|
|
17
17
|
<%- models= @app.elements["//node[@TEXT='models']"] %>
|
18
18
|
|
@@ -20,18 +20,17 @@
|
|
20
20
|
|
21
21
|
***
|
22
22
|
|
23
|
-
#
|
23
|
+
# Contents
|
24
24
|
|
25
25
|
## markdown
|
26
26
|
|
27
|
-
|
28
|
-
ผู้เกี่ยวข้องสามารถเขียนวิธีการใช้งานได้อย่างอิสระ โดยใช้คำสั่ง
|
27
|
+
This document created and edited with
|
29
28
|
<a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">markdown</a>
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
*
|
34
|
-
*
|
35
|
-
*
|
36
|
-
*
|
37
|
-
*
|
29
|
+
|
30
|
+
Contents:
|
31
|
+
|
32
|
+
* Requirement at `README.md`
|
33
|
+
* Controller Help at `app/controllers/system.md`
|
34
|
+
* Project at `app/views/project/<งาน>.md`
|
35
|
+
*
|
36
|
+
*
|
@@ -4,16 +4,18 @@
|
|
4
4
|
|
5
5
|
%h2 You are working on
|
6
6
|
%ul
|
7
|
-
%li gem 'mindapp2', '~> 0.1.1.
|
7
|
+
%li gem 'mindapp2', '~> 0.1.1.5'
|
8
8
|
|
9
9
|
%h2 Requirements
|
10
|
-
%ul
|
11
|
-
%li Rails 5.1.2
|
10
|
+
%ul
|
12
11
|
%li Rubygems 2.4.1
|
12
|
+
%li Rails 5.1.4
|
13
|
+
%li rails new YOURAPP -skip-test-unit --skip-bundle --skip-active-record
|
14
|
+
|
13
15
|
|
14
16
|
%h2 Installation
|
15
17
|
%ul
|
16
|
-
%li gem 'mindapp2', '~> 0.1.1.
|
18
|
+
%li gem 'mindapp2', '~> 0.1.1.5'
|
17
19
|
%li bundle
|
18
20
|
%li rails generate mindapp:install
|
19
21
|
%li bundle
|
data/lib/mindapp2/helpers.rb
CHANGED
data/lib/mindapp2/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mindapp2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prateep Kul
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-10-
|
12
|
+
date: 2017-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -63,7 +63,6 @@ files:
|
|
63
63
|
- ".gitignore"
|
64
64
|
- ".travis.yml"
|
65
65
|
- CHANGELOG.md
|
66
|
-
- CODE_OF_CONDUCT.md
|
67
66
|
- Gemfile
|
68
67
|
- LICENSE.txt
|
69
68
|
- README.md
|
@@ -73,6 +72,7 @@ files:
|
|
73
72
|
- lib/generators/mindapp/USAGE
|
74
73
|
- lib/generators/mindapp/install_generator.rb
|
75
74
|
- lib/generators/mindapp/mongoid_generator.rb
|
75
|
+
- lib/generators/mindapp/templates/.env
|
76
76
|
- lib/generators/mindapp/templates/app/assets/config/manifest.js
|
77
77
|
- lib/generators/mindapp/templates/app/assets/images/.keep
|
78
78
|
- lib/generators/mindapp/templates/app/assets/images/4dcity-old.ico
|
@@ -113,7 +113,6 @@ files:
|
|
113
113
|
- lib/generators/mindapp/templates/app/assets/images/logo.png
|
114
114
|
- lib/generators/mindapp/templates/app/assets/images/logo_mindapp.png
|
115
115
|
- lib/generators/mindapp/templates/app/assets/images/logout.png
|
116
|
-
- lib/generators/mindapp/templates/app/assets/images/mylogo.png
|
117
116
|
- lib/generators/mindapp/templates/app/assets/images/new.gif
|
118
117
|
- lib/generators/mindapp/templates/app/assets/images/new.png
|
119
118
|
- lib/generators/mindapp/templates/app/assets/images/page.png
|
@@ -266,7 +265,6 @@ files:
|
|
266
265
|
- lib/generators/mindapp/templates/app/views/layouts/_meta_tags.html.erb
|
267
266
|
- lib/generators/mindapp/templates/app/views/layouts/_metatag.html.erb
|
268
267
|
- lib/generators/mindapp/templates/app/views/layouts/_page.haml
|
269
|
-
- lib/generators/mindapp/templates/app/views/layouts/_top.html.erb
|
270
268
|
- lib/generators/mindapp/templates/app/views/layouts/application.haml
|
271
269
|
- lib/generators/mindapp/templates/app/views/layouts/application.html.erb.bak
|
272
270
|
- lib/generators/mindapp/templates/app/views/layouts/gmail.html.erb
|
@@ -285,6 +283,7 @@ files:
|
|
285
283
|
- lib/generators/mindapp/templates/app/views/mindapp/_pending_page.haml
|
286
284
|
- lib/generators/mindapp/templates/app/views/mindapp/_service.md
|
287
285
|
- lib/generators/mindapp/templates/app/views/mindapp/_static.haml
|
286
|
+
- lib/generators/mindapp/templates/app/views/mindapp/doc-thai.md
|
288
287
|
- lib/generators/mindapp/templates/app/views/mindapp/doc.md
|
289
288
|
- lib/generators/mindapp/templates/app/views/mindapp/error_logs.haml
|
290
289
|
- lib/generators/mindapp/templates/app/views/mindapp/feed.rss.builder
|
@@ -344,7 +343,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
344
343
|
version: '0'
|
345
344
|
requirements: []
|
346
345
|
rubyforge_project:
|
347
|
-
rubygems_version: 2.6.
|
346
|
+
rubygems_version: 2.6.14
|
348
347
|
signing_key:
|
349
348
|
specification_version: 4
|
350
349
|
summary: Rails workflow from mind map
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at 1.0@kul.asia. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
Binary file
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<li><%= link_to "<span>หน้าแรก</span>","/" %></li>
|
2
|
-
<li><%= mail_to "songrit@gmail.com", "<span>ติดต่อ</span>" %></li>
|
3
|
-
<li><%= link_to "<span>#{image_tag 'twittersmall.png'}</span>","http://twitter.com/songrit", :title => "Twitter", :class=>"top-icon" %></li>
|
4
|
-
<li><%= link_to "<span>#{image_tag 'facebooksmall.png'}</span>","http://www.facebook.com/songrit", :title => "Facebook", :class=>"top-icon" %></li>
|
5
|
-
<li><%= link_to "<span>#{image_tag 'help.png'}</span>","/main/doc", :title => "คู่มือการใช้งาน", :class=>"top-icon" %></li>
|
6
|
-
<script type="text/javascript">
|
7
|
-
$(window).load(function() {
|
8
|
-
$(".top-icon").tooltip({ position: "bottom center"});
|
9
|
-
})
|
10
|
-
</script>
|