-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add basic jspreadsheet POC [SCI-11099] #7944
base: develop
Are you sure you want to change the base?
Add basic jspreadsheet POC [SCI-11099] #7944
Conversation
@@ -12,6 +12,8 @@ import 'bootstrap'; | |||
require('bootstrap-select/js/bootstrap-select'); | |||
import '@vuepic/vue-datepicker/dist/main.css'; | |||
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css' | |||
import "jsuites/dist/jsuites.css"; | |||
import "jspreadsheet/dist/jspreadsheet.css"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import in body of module; reorder to top import/first
Strings must use singlequote quotes
@@ -12,6 +12,8 @@ import 'bootstrap'; | |||
require('bootstrap-select/js/bootstrap-select'); | |||
import '@vuepic/vue-datepicker/dist/main.css'; | |||
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css' | |||
import "jsuites/dist/jsuites.css"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import in body of module; reorder to top import/first
Strings must use singlequote quotes
@import '~material-icons-font/sass/mixins'; // mandatory and after variables | ||
$MaterialIcons_FontPath: "~material-icons-font/fonts"; // for CLI project we change font path to point into package fonts folder | ||
@import '~material-icons-font/sass/main'; // mandatory main material font definition | ||
@import '~material-icons-font/sass/Regular'; // mandatory @font-face definition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer double-quoted strings
@import '~material-icons-font/sass/variables'; // mandatory and at first place | ||
@import '~material-icons-font/sass/mixins'; // mandatory and after variables | ||
$MaterialIcons_FontPath: "~material-icons-font/fonts"; // for CLI project we change font path to point into package fonts folder | ||
@import '~material-icons-font/sass/main'; // mandatory main material font definition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer double-quoted strings
/// Must be relplaced with our icons | ||
@import '~material-icons-font/sass/variables'; // mandatory and at first place | ||
@import '~material-icons-font/sass/mixins'; // mandatory and after variables | ||
$MaterialIcons_FontPath: "~material-icons-font/fonts"; // for CLI project we change font path to point into package fonts folder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name of variable MaterialIcons_FontPath
should be written in all lowercase letters with hyphens instead of underscores
|
||
|
||
/// Must be relplaced with our icons | ||
@import '~material-icons-font/sass/variables'; // mandatory and at first place |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer double-quoted strings
@@ -278,6 +310,7 @@ export default { | |||
}); | |||
}, | |||
loadTableData() { | |||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
@@ -265,7 +296,8 @@ export default { | |||
}); | |||
} | |||
|
|||
this.$emit('update', this.element, false, callback); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More than 1 blank line not allowed no-multiple-empty-lines
@@ -152,7 +175,7 @@ export default { | |||
if (!this.updatingTableData) this.loadTableData(); | |||
}, | |||
beforeUpdate() { | |||
if (!this.updatingTableData) this.tableObject.destroy(); | |||
//if (!this.updatingTableData) this.tableObject.destroy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected space or tab after '//' in comment spaced-comment
@@ -63,11 +76,18 @@ import InlineEdit from '../inline_edit.vue'; | |||
import TableNameModal from './modal/table_name.vue'; | |||
import moveElementModal from './modal/move.vue'; | |||
import MenuDropdown from '../menu_dropdown.vue'; | |||
import { Spreadsheet, Worksheet } from "@jspreadsheet/vue"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings must use singlequote quotes
f2c0c8b
to
7e30318
Compare
editingName: false, | ||
editingTable: false, | ||
editingCell: false, | ||
tableObject: null, | ||
nameModalOpen: false, | ||
reloadHeader: 0, | ||
updatingTableData: false | ||
updatingTableData: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected trailing comma comma-dangle
Jira ticket: SCI-11099
What was done
This pull request introduces several changes to integrate the
jspreadsheet
library for spreadsheet functionalities and thematerial-icons-font
for icon management in the project. The most important changes include adding new dependencies, updating stylesheets, and modifying Vue components to incorporate the new spreadsheet functionality.Integration of
jspreadsheet
:app/javascript/packs/application.js
: Added imports forjspreadsheet
andjsuites
stylesheets.app/javascript/vue/shared/content/table.vue
: IntegratedSpreadsheet
andWorksheet
components from@jspreadsheet/vue
, added data handling methods, and updated lifecycle hooks. [1] [2] [3] [4] [5] [6] [7] [8]app/views/layouts/application.html.erb
: Added a meta tag to include thejspreadsheet
license key from environment variables.package.json
: Added@jspreadsheet/vue
as a new dependency.Integration of
material-icons-font
:app/javascript/packs/application.scss
: Added imports and configurations formaterial-icons-font
to manage icon fonts.package.json
: Addedmaterial-icons-font
as a new dependency.