Merge a9b034637b
into 6767771d7d
This commit is contained in:
commit
19e675617e
5 changed files with 34 additions and 6 deletions
18
.example-env
Normal file
18
.example-env
Normal file
|
@ -0,0 +1,18 @@
|
|||
RAILS_ENV=development
|
||||
|
||||
AWS_ACCESS_KEY_ID
|
||||
AWS_SECRET_ACCESS_KEY
|
||||
BUNDLE_GEMFILE
|
||||
SMTP_DOMAIN
|
||||
SMTP_PASSWORD
|
||||
SMTP_PORT
|
||||
SMTP_SERVER
|
||||
SMTP_USERNAME
|
||||
SSO_KEY
|
||||
|
||||
## find the ENV currently in use in the app using :
|
||||
## grep -rIso -P "(?<=ENV)(\.fetch\(|\[).[A-Z_]+.(\)|\])"
|
||||
|
||||
# for a uniq ordered list of env vars:
|
||||
## grep -rIsoh -P "(?<=ENV)(\.fetch\(|\[).[A-Z_]+.(\)|\])" | grep -oP "[A-Z_]+" | sort -u > temp
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
|||
|
||||
realtime/node_modules
|
||||
config/database.yml
|
||||
.env
|
||||
#public/assets
|
||||
|
||||
# Ignore bundler config
|
||||
|
|
1
Gemfile
1
Gemfile
|
@ -17,6 +17,7 @@ gem 'rails3-jquery-autocomplete'
|
|||
gem 'best_in_place' #in-place editing
|
||||
gem 'kaminari' # pagination
|
||||
gem 'uservoice-ruby'
|
||||
gem 'dotenv'
|
||||
|
||||
gem 'paperclip'
|
||||
gem 'aws-sdk'
|
||||
|
|
|
@ -59,6 +59,7 @@ GEM
|
|||
responders
|
||||
thread_safe (~> 0.1)
|
||||
warden (~> 1.2.3)
|
||||
dotenv (2.0.0)
|
||||
erubis (2.7.0)
|
||||
execjs (2.2.1)
|
||||
ezcrypto (0.7.2)
|
||||
|
@ -165,6 +166,7 @@ DEPENDENCIES
|
|||
cancan
|
||||
coffee-rails (~> 3.2.1)
|
||||
devise
|
||||
dotenv
|
||||
formtastic
|
||||
formula
|
||||
jbuilder (= 0.8.2)
|
||||
|
|
|
@ -665,8 +665,11 @@ Metamaps.Create = {
|
|||
});
|
||||
|
||||
// initialize the autocomplete results for the metacode spinner
|
||||
$('#topic_name').typeahead([
|
||||
$('#topic_name').typeahead(
|
||||
{
|
||||
minLength: 2,
|
||||
},
|
||||
[{
|
||||
name: 'topic_autocomplete',
|
||||
limit: 8,
|
||||
template: $('#topicAutocompleteTemplate').html(),
|
||||
|
@ -674,8 +677,8 @@ Metamaps.Create = {
|
|||
url: '/topics/autocomplete_topic?term=%QUERY'
|
||||
},
|
||||
engine: Hogan
|
||||
}
|
||||
]);
|
||||
}]
|
||||
);
|
||||
|
||||
// tell the autocomplete to submit the form with the topic you clicked on if you pick from the autocomplete
|
||||
$('#topic_name').bind('typeahead:selected', function (event, datum, dataset) {
|
||||
|
@ -724,8 +727,11 @@ Metamaps.Create = {
|
|||
});
|
||||
|
||||
// initialize the autocomplete results for synapse creation
|
||||
$('#synapse_desc').typeahead([
|
||||
$('#synapse_desc').typeahead(
|
||||
{
|
||||
minLength: 2,
|
||||
},
|
||||
[{
|
||||
name: 'synapse_autocomplete',
|
||||
template: "<div class='genericSynapseDesc'>{{label}}</div>",
|
||||
remote: {
|
||||
|
@ -745,8 +751,8 @@ Metamaps.Create = {
|
|||
},
|
||||
engine: Hogan,
|
||||
header: "<h3>Existing synapses</h3>"
|
||||
}
|
||||
]);
|
||||
}]
|
||||
);
|
||||
|
||||
$('#synapse_desc').bind('typeahead:selected', function (event, datum, dataset) {
|
||||
if (datum.id) { // if they clicked on an existing synapse get it
|
||||
|
|
Loading…
Add table
Reference in a new issue