Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aws #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Aws #34

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
.DS_Store
**/.env
**/.env-bak
**/development.log

40 changes: 26 additions & 14 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,35 @@
jinda_methods += ['run_redirect', 'run_direct_to','run_if']
jinda_methods += ['error_logs', 'notice_logs', 'cancel', 'run_output', 'end_output']
jinda_methods.each do |aktion| get "/jinda/#{aktion}" => "jinda##{aktion}" end
post '/jinda/init' => 'jinda#init'
post '/jinda/pending' => 'jinda#index'
post '/jinda/end_form' => 'jinda#end_form'
post '/jinda/end_output' => 'jinda#end_output'

# Define the actions array
jinda_actions = ['init', 'pending', 'end_form', 'end_output']
# Generate routes for each action
jinda_actions.each do |action|
post "/jinda/#{action}" => "jinda##{action}"
end

# end jinda method routes
post '/auth/:provider/callback' => 'sessions#create'
get '/auth/:provider/callback' => 'sessions#create'
get '/auth/failure' => 'sessions#failure'
get '/logout' => 'sessions#destroy', :as => 'logout'
get '/articles/my' => 'articles#my'
get '/articles/my/destroy' => 'articles#destroy'
get '/articles/show' => 'articles/show'
get '/articles/edit' => 'articles/edit'
get '/docs/my' => 'docs/my'
get '/notes/my' => 'notes/my'
get '/docs/my/destroy' => 'docs#destroy'
get '/notes/my/destroy/:id' => 'notes#destroy'
get '/notes/destroy/:id' => 'notes#destroy'
get '/jinda/document/:id' => 'jinda#document'


# Define the actions array
actions = ['my', 'destroy', 'show', 'edit']

# Define modules and generate routes for each module and action
['articles', 'jobs', 'docs', 'notes'].each do |module_name|
actions.each do |action|
get "/#{module_name}/#{action}" => "#{module_name}##{action}"
get "/#{module_name}/my/destroy" => "#{module_name}#destroy"
get "/#{module_name}/my/destroy/:id" => "#{module_name}#destroy"
end
end

resources :articles do resources :comments end
resources :jobs
resources :comments
resources :notes
resources :docs
Expand All @@ -33,6 +42,7 @@
resources :sessions
resources :password_resets
resources :jinda, :only => [:index, :new]
get '/jinda/document/:id' => 'jinda#document'
# root :to => 'jinda#index'
# api
get '/api/v1/notes/my' => 'api/v1/notes#my'
Expand All @@ -42,3 +52,5 @@
end
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end
# Define Routes constant
Routes = Rails.application.routes
572 changes: 274 additions & 298 deletions lib/generators/jinda/templates/app/jinda/index.mm

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions test/dummy/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.

# Ignore git directory.
/.git/

# Ignore bundler config.
/.bundle

# Ignore all environment files (except templates).
/.env*
!/.env*.erb

# Ignore all default key files.
/config/master.key
/config/credentials/*.key

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/.keep

# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/.keep

# Ignore assets.
/node_modules/
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets
1 change: 1 addition & 0 deletions test/dummy/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@

# Ignore master key for decrypting credentials and more.
/config/master.key
.env
1 change: 1 addition & 0 deletions test/dummy/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,4 @@ group :development, :test do
end
gem "mongoid-paperclip", require: "mongoid_paperclip"
gem "kaminari-mongoid", "1.0.1"
gem "rexml", "~> 3.2.4"
4 changes: 2 additions & 2 deletions test/dummy/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PATH
remote: ../../../jinda_adminlte
specs:
jinda_adminlte (0.7.5.1)
jinda_adminlte (0.8.0)

PATH
remote: ../..
specs:
jinda (0.7.7.2)
jinda (0.8.0)
rexml (~> 3.2)

GEM
Expand Down
24 changes: 0 additions & 24 deletions test/dummy/README.md.bak
Original file line number Diff line number Diff line change
@@ -1,24 +0,0 @@
# README

This README would normally document whatever steps are necessary to get the
application up and running.

Things you may want to cover:

* Ruby version

* System dependencies

* Configuration

* Database creation

* Database initialization

* How to run the test suite

* Services (job queues, cache servers, search engines, etc.)

* Deployment instructions

* ...
6 changes: 6 additions & 0 deletions test/dummy/app/assets/config/manifest.js-rails
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
//= link_tree ../images
//= link_directory ../stylesheets .css
//= link application.js
//= link logo_jinda.png
//= link favicon.ico
//= link jinda.css
//= link sarabun.css

16 changes: 8 additions & 8 deletions test/dummy/app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jinda_jqm


//= require rails-ujs
// require turbolinks
//= require jindalte.js
15 changes: 0 additions & 15 deletions test/dummy/app/assets/stylesheets/application.css.bak

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This is a manif.est file that'll be compiled into application.css, which will include all the files
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
Expand All @@ -8,8 +8,16 @@
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*= require normalize-rails
*= require jindalte.css
*= require jinda
*/
@import "jinda_jqm.css.scss"









Loading