| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds support for Markdown for Resource descriptions.
CommonMark: https://commonmark.org/
Gem documentation: https://gjtorikian.github.io/commonmarker/
|
| |/
| |
| |
| | |
trailing whitespaces. It only sanitizes phone_number, website and email because they these data are following a format. Name, address, etc... are not sanitized
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit creates a dedicated Map model and
moves the JavaScript from view to a Stimulus controller.
- Stimulus.js https://stimulusjs.org
- Leaflet.js https://leafletjs.org
Upcoming resources:
- https://discourse.stimulusjs.org/t/leafletjs-with-stimulusjs-on-rails-6/1343/4
- https://github.com/ghybs/leaflet-defaulticon-compatibility
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
| |
Switching current Agent can help with roles and resource access.
Go to your dashboard by clicking the avatar.
Select agent and hit "Select"
|
| |
|
| |
|
|
|
|
| |
To avoid breaking on logout
|
| |
|
|
|
|
|
|
|
|
| |
Currently there's a bug throwing:
TypeError (nil is not a symbol nor a string)
When creating a Resource...
|
| |
|
| |
|
|
|
|
|
| |
- `current_agent` is now a full instance of Agent
- provide helpers to verify current user roles
|
|
|
|
|
|
|
| |
Since an Agent is required for all records, we scope the routes
and get it present for free ;)
This commit also adds resource views.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Turn `has_and_belongs_to_many` into `has_many :through`: now,
resources and sections are related through Classifications.
- Refactor usage of jsonb column to use ActiveRecord validations
- Attention! store_accessor:
NOTE: If you are using structured database data types (eg. PostgreSQL hstore/json, or MySQL 5.7+ json) there is no need for the
serialization provided by .store. Simply use .store_accessor instead to generate the accessor methods. Be aware that these
columns use a string keyed hash and do not allow access using a symbol.
NOTE: The default validations with the exception of uniqueness will work. For example, if you want to check for uniqueness with
hstore you will need to use a custom validation to handle it.
https://api.rubyonrails.org/classes/ActiveRecord/Store.html
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit introduces a few things:
1. New `content_for` hooks for :debug, :head, and :body_end so that views
code remains consistent and clean
2. Fullscreen map!
3. Welcome#index view, the Rails way
It also moves controller-related code to the controller,
Enjoy!
|
|/ |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Taxonomy > Category > Section
This commit adds models for it.
https://doc.incommon.cc/#classifications
|
| | |
|
|/
|
|
| |
from the data
|
| |
|
|
|
|
| |
edit categories
|
| |
|
| |
|
|
|
|
|
|
| |
This implements resource listing and pagination.
See /resources
|
|
|
|
|
| |
A single worker in development enables in-context debug in the
error console in the browser.
|
|
|
|
|
|
|
|
|
| |
Since we're dealing with lots of resources, we need a way to
handle pagination. This gem seems to be the new kid on the block
and doing things right, including pagination by default an I18n
support. Let's see.
Kaminari: https://github.com/kaminari/kaminari
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Renamed `readme.txt` to `README.md` to stick to standard README case
and take advantage of Markdown formatting supported by code hosting
services.
Also fixed names in the content.
And added import method to the database.
|
|
|
|
|
|
|
| |
t.references already creates an index, so the second index
actually broke things.
You may need to rebuild the database!
|
|
|
|
|
|
|
|
| |
mail -> email since it's unambiguous
Also changed 'Concertes' source to 'ConcertES' since it is
the group name on IN COMMON and the name of the Agent, to
facilitate data import.
|
| |
|
|
|
|
|
|
| |
Resources will be stored as JSON, in the (GeoJSON) :feature column.
They are assigned an UUID upon creation if they don't comme with one.
They belong to an Agent.
|
| |
|
|
|
|
| |
file to explain LocationsParser.rb
|
|
|
|
| |
contains all the locations from the Dewey and Concertes data
|
| |
|