lesli_letter 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +5 -0
- data/app/assets/config/lesli_letter_manifest.js +39 -0
- data/app/assets/images/lesli_letter/letter-logo.svg +1 -0
- data/app/assets/javascripts/lesli_letter/application.js +3980 -0
- data/app/assets/stylesheets/lesli_letter/application.scss +37 -0
- data/app/assets/stylesheets/lesli_letter/notebooks.scss +43 -0
- data/app/assets/stylesheets/lesli_letter/notes.scss +71 -0
- data/app/controllers/lesli_letter/accounts_controller.rb +60 -0
- data/app/controllers/lesli_letter/application_controller.rb +4 -0
- data/app/controllers/lesli_letter/dashboards_controller.rb +4 -0
- data/app/controllers/lesli_letter/notebooks_controller.rb +98 -0
- data/app/controllers/lesli_letter/notes_controller.rb +114 -0
- data/app/helpers/lesli_letter/accounts_helper.rb +4 -0
- data/app/helpers/lesli_letter/application_helper.rb +4 -0
- data/app/helpers/lesli_letter/dashboards_helper.rb +4 -0
- data/app/helpers/lesli_letter/notebooks_helper.rb +4 -0
- data/app/helpers/lesli_letter/notes_helper.rb +4 -0
- data/app/jobs/lesli_letter/application_job.rb +4 -0
- data/app/mailers/lesli_letter/application_mailer.rb +6 -0
- data/app/models/lesli_letter/account.rb +39 -0
- data/app/models/lesli_letter/application_record.rb +5 -0
- data/app/models/lesli_letter/dashboard.rb +31 -0
- data/app/models/lesli_letter/note.rb +7 -0
- data/app/models/lesli_letter/notebook.rb +7 -0
- data/app/services/lesli_letter/note_service.rb +64 -0
- data/app/services/lesli_letter/notebook_service.rb +52 -0
- data/app/views/lesli_letter/accounts/_account.html.erb +2 -0
- data/app/views/lesli_letter/accounts/_form.html.erb +17 -0
- data/app/views/lesli_letter/accounts/edit.html.erb +10 -0
- data/app/views/lesli_letter/accounts/index.html.erb +14 -0
- data/app/views/lesli_letter/accounts/new.html.erb +9 -0
- data/app/views/lesli_letter/accounts/show.html.erb +10 -0
- data/app/views/lesli_letter/dashboards/show.html.erb +1 -0
- data/app/views/lesli_letter/notebooks/edit.html.erb +10 -0
- data/app/views/lesli_letter/notebooks/index.html.erb +1 -0
- data/app/views/lesli_letter/notebooks/new.html.erb +9 -0
- data/app/views/lesli_letter/notebooks/show.html.erb +10 -0
- data/app/views/lesli_letter/notes/edit.html.erb +10 -0
- data/app/views/lesli_letter/notes/index.html.erb +1 -0
- data/app/views/lesli_letter/notes/new.html.erb +9 -0
- data/app/views/lesli_letter/notes/show.html.erb +10 -0
- data/app/views/lesli_letter/partials/_engine-navigation.html.erb +37 -0
- data/config/locales/translations.en.yml +23 -0
- data/config/locales/translations.es.yml +23 -0
- data/config/routes.rb +57 -0
- data/db/migrate/v1/0305000110_create_lesli_letter_accounts.rb +42 -0
- data/db/migrate/v1/0305050110_create_lesli_letter_dashboards.rb +51 -0
- data/db/migrate/v1/0305050210_create_lesli_letter_dashboard_components.rb +53 -0
- data/db/migrate/v1/0305100110_create_lesli_letter_notebooks.rb +46 -0
- data/db/migrate/v1/0305110110_create_lesli_letter_notes.rb +48 -0
- data/db/seed/development.rb +53 -0
- data/db/seed/production.rb +35 -0
- data/db/seed/test.rb +35 -0
- data/db/seeds.rb +43 -0
- data/lib/lesli_letter/engine.rb +49 -0
- data/lib/lesli_letter/version.rb +4 -0
- data/lib/lesli_letter.rb +6 -0
- data/lib/tasks/lesli_letter_tasks.rake +4 -0
- data/lib/vue/application.js +77 -0
- data/lib/vue/apps/notebooks/index.vue +85 -0
- data/lib/vue/apps/notes/components/note-preview.vue +45 -0
- data/lib/vue/apps/notes/index.vue +102 -0
- data/lib/vue/stores/note.js +90 -0
- data/lib/vue/stores/notebooks.js +61 -0
- data/lib/vue/stores/notes.js +61 -0
- data/lib/vue/stores/translations.json +58 -0
- data/license +674 -0
- data/readme.md +76 -0
- metadata +128 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
/*
|
2
|
+
Lesli
|
3
|
+
|
4
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
5
|
+
|
6
|
+
This program is free software: you can redistribute it and/or modify
|
7
|
+
it under the terms of the GNU General Public License as published by
|
8
|
+
the Free Software Foundation, either version 3 of the License, or
|
9
|
+
(at your option) any later version.
|
10
|
+
|
11
|
+
This program is distributed in the hope that it will be useful,
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
GNU General Public License for more details.
|
15
|
+
|
16
|
+
You should have received a copy of the GNU General Public License
|
17
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
18
|
+
|
19
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
20
|
+
|
21
|
+
Made with ♥ by https://www.lesli.tech
|
22
|
+
Building a better future, one line of code at a time.
|
23
|
+
|
24
|
+
@contact hello@lesli.tech
|
25
|
+
@website https://www.lesli.tech
|
26
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
27
|
+
|
28
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
29
|
+
// ·
|
30
|
+
*/
|
31
|
+
|
32
|
+
|
33
|
+
// ·
|
34
|
+
import { defineStore } from "pinia"
|
35
|
+
|
36
|
+
|
37
|
+
// ·
|
38
|
+
export const useNotes = defineStore("letter.notes", {
|
39
|
+
state: () => {
|
40
|
+
return {
|
41
|
+
index: {
|
42
|
+
loading: false,
|
43
|
+
pagination: {},
|
44
|
+
records: []
|
45
|
+
}
|
46
|
+
}
|
47
|
+
},
|
48
|
+
actions: {
|
49
|
+
get() {
|
50
|
+
this.loading = true
|
51
|
+
this.http.get(this.url.letter("notes")).then(result => {
|
52
|
+
this.index.pagination = result.pagination
|
53
|
+
this.index.records = result.records
|
54
|
+
}).catch(error => {
|
55
|
+
console.log(error)
|
56
|
+
}).finally(() => {
|
57
|
+
this.loading = false
|
58
|
+
})
|
59
|
+
},
|
60
|
+
}
|
61
|
+
})
|
@@ -0,0 +1,58 @@
|
|
1
|
+
{
|
2
|
+
"en": {
|
3
|
+
"lesli": {
|
4
|
+
"application": {
|
5
|
+
"navigation_logout": "Logout",
|
6
|
+
"navigation_my_profile": "My profile"
|
7
|
+
},
|
8
|
+
"shared": {
|
9
|
+
"button_add_new": "Add new",
|
10
|
+
"button_delete": "Delete",
|
11
|
+
"button_edit": "Edit",
|
12
|
+
"button_list": "List",
|
13
|
+
"button_reload": "Reload",
|
14
|
+
"button_save": "Save",
|
15
|
+
"button_settings": "Settings",
|
16
|
+
"view_discussions": "Discussions",
|
17
|
+
"view_files": "Files",
|
18
|
+
"view_quick_actions": "Quick actions",
|
19
|
+
"view_status_active": "Active",
|
20
|
+
"view_status_inactive": "Inactive"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"lesli_letter": {
|
24
|
+
"notes": {
|
25
|
+
"toolbar_search_placeholder": "Search by title or content...",
|
26
|
+
"view_title": "Notes"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"es": {
|
31
|
+
"lesli": {
|
32
|
+
"application": {
|
33
|
+
"navigation_logout": "Cerrar sesión",
|
34
|
+
"navigation_my_profile": "Mi perfil"
|
35
|
+
},
|
36
|
+
"shared": {
|
37
|
+
"button_add_new": "Agregar nuevo",
|
38
|
+
"button_delete": "Eliminar",
|
39
|
+
"button_edit": "Editar",
|
40
|
+
"button_list": "Lista",
|
41
|
+
"button_reload": "Recargar",
|
42
|
+
"button_save": "Guardar",
|
43
|
+
"button_settings": "Configuración",
|
44
|
+
"view_discussions": "Discusiones",
|
45
|
+
"view_files": "Archivos",
|
46
|
+
"view_quick_actions": "Acciones rapidas",
|
47
|
+
"view_status_active": "Activo",
|
48
|
+
"view_status_inactive": "Inactivo"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"lesli_letter": {
|
52
|
+
"notes": {
|
53
|
+
"toolbar_search_placeholder": "Buscar por titulo o contenido...",
|
54
|
+
"view_title": "Notas"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|