mirror of
https://github.com/alerta/alerta-webui.git
synced 2025-03-16 21:43:29 +00:00

* First update to libraries * Exported app instance from main.ts. Readded missing npm packages * Implemented steps 1-4 of migration guide * change css preprocessor from stylus to sass * Upgraded vue-router to v4 * Upgraded @vue/cli* packages -The "vue upgrade" command should do this but it doesn't seem to be working * Fix package dependencies -Now only Vue components seem to be broken * change obsolete eslint rule * changing @Component decorator to @Options for /views * change filter syntax to vue 3 -Vue.filter is deprecated so filters export plain functions which are passed into app.config.globalProperties.$filters * removed ts lang to support @Options in /views * disabled vue-multi-word-component-names eslint error * fixed v-text and v-html errors in App.vue * fixed span elements, template v-slot and other errors * remove vue 2 helper libraries -vue components no longer use decorators via "vue-class-component" or "vue-property-decorator" * fix app.use being called after app.mount -places where the app instance was imported and then use is called have been inverted so that they export to main and app.use is called there * fix vue-router * fix vue-router * fix i18n compatibility -all relevant functions are on the global property now * change vuetify to use v3 api * update vuetify api to use display instead of breakpoint * imported all vuetify 3 components * create app instance outside bootstap.getConfig() -this was causing an issue where the app instance might be undefined when imported in other files because bootstrap.getConfig() is asynchronous -ApiKeyList.spec.ts relies on Vue 2 API right now, commented out lines will be fixed later * fixing /plugins with vuetify errors * general changes + theme changes for vuetify * changed multiple v- component and props to new vuetify names * update vue-cli-plugin-vuetify * added v-window parent components * migrating vuetify from v1 to v2; changing v-list components * further migration of vuetify components from v1 to v2 * migrated v-flex to v-col to support Vuetify 2 * changed to single quotes in shims file * converting to v-list-item * migrating to v-window-item * migrating from v-content to v-main fixed useGroup injection error due to absent v-window nesting migrating vuetify components including v-data-table migrating from v-list-item-avatar * fix: vue-i18n plugin flags Zakareya Alatoli 2/27/23, 10:41 AM style: removed some semicolons and double quotes Zakareya Alatoli 2/25/23, 1:37 PM fix: path to local fonts in index.html Zakareya Alatoli 2/25/23, 12:43 PM * fix: prop name changes in vuetify 3 Zakareya Alatoli 3/1/23, 8:00 AM * fix: profile icon now appears Zakareya Alatoli 3/1/23, 7:38 PM * fix: tooltip for hovering over savesearch pin Zakareya Alatoli 3/1/23, 7:54 PM * fix: changed beforeDestroy() to beforeUnmount() in AlertIndicator.vue Zakareya Alatoli 3/2/23, 10:40 AM fix: enable vue3 essential linting Zakareya Alatoli 3/2/23, 10:38 AM fix: warnings caused by sidemenu toolbar using v-show instead of v-if Zakareya Alatoli 3/2/23, 9:17 AM fix: rightside ellipses button on alerts page Zakareya Alatoli 3/1/23, 9:23 PM * fix: small vuetify migration changes Gabby Niamat Today 9:59 AM fix: changed components to accept theme='dark' instead of 'dark' prop Gabby Niamat Today 9:50 AM fix: also migrated offset-x to offset Gabby Niamat Today 9:48 AM fix: removed offset-y to just offset Gabby Niamat Today 9:47 AM fix: changed nudge-right to offset Gabby Niamat Today 9:44 AM fix: automatic linting migration Gabby Niamat Today 9:43 AM fix: changed text-xs-center to text-center Gabby Niamat Today 9:41 AM fix: changed grey--text to text-grey Gabby Niamat Today 9:38 AM changed headline to text-h5 and fixed some eslint errors in /views Gabby Niamat Today 9:36 AM changed bottom to location='bottom' Gabby Niamat Today 9:30 AM add vuetify linting Zakareya Alatoli Today 9:11 AM reverted deleted package.json Zakareya Alatoli Yesterday 8:22 PM Merge branch 'vue3-migration' into upgrade-vue2to3 Zakareya Alatoli Yesterday 8:17 PM changed to location=bottom for components Gabby Niamat Yesterday 12:18 PM fix: fixed syntax for template upgrades in AlertDetail Gabby Niamat Yesterday 12:15 PM Merge branch 'upgrade-vue2to3' of https://github.com/ZakareyaAlatoli/alerta-webui into upgrade-vue2to3 Gabby Niamat Yesterday 12:05 PM fix: fixed slot templates for ApiKeyList.vue Gabby Niamat Yesterday 12:02 PM fix: incorrectly displayed vuetify icons Zakareya Alatoli Yesterday 10:31 AM fix: v-select now uses "title" instead of "text" to use as the display value for an object Zakareya Alatoli Yesterday 8:14 AM fix: forms being reset too long after the dialog box they're in is closed Zakareya Alatoli Yesterday 7:55 AM style: changed element sizes on profile page Zakareya Alatoli Yesterday 7:19 AM fix: v-col breakpoint sizes Zakareya Alatoli Yesterday 7:03 AM fix: used templates for slots in ApiKeyList.vue Gabby Niamat 3/5/23, 2:10 PM fix: reinstalled vue-object-merge because store relied on it Zakareya Alatoli 3/4/23, 7:55 PM fix: components loaded asynchronously now use defineAsyncComponent Zakareya Alatoli 3/4/23, 6:00 PM fix: misplaced template end tags Zakareya Alatoli 3/4/23, 3:31 PM fix: more updated slot directives Zakareya Alatoli 3/4/23, 2:09 PM fix: used templates for slots in AlertDetail.vue Gabby Niamat 3/4/23, 12:57 PM fix: used templates for slots in BlackoutList.vue Gabby Niamat 3/4/23, 12:21 PM fix: about half of v-slot errors Zakareya Alatoli 3/3/23, 1:14 PM fixed slot attr depreciation in /reports Gabby Niamat 3/3/23, 10:24 AM changed .sync modifier to v-model syntax Gabby Niamat 3/3/23, 10:10 AM * add missing packages * fix: updated packages Note this requires installing with force because of a dependency conflict between vuex-router-sync and vuex, as well as between vuex-router-sync and vue-router. * fix: deprecated vuetify props * start fixing v-data-table * fix: alerts data table now renders properly * removed caching for /help to improve useability * fix: v-slot for v-data-table is called "item" not "props" * fix: partial styling on alerts * temp fix: background colors for alerts * fixed Add button styling and spacing * fix: search function was using an improper event to use for the search query * fix: filtered out empty strings from Roles dropdown menu * fix: update-focused returned a boolean of whether or not the text box was focused rather than the input value * fix: search query is now properly submitted * fix: v-data-table in blackouts not showing as well as broken tooltips in it * remove unnecessary "this" when using filters * revert change to filters * fix: alert detail sections now properly appear in their respective tabs * fix: data tables for apikeylist, topflapping, topoffenders, and topstanding * fix: blackouts being modified without vuex modifiers * fix: edit, save, and delete buttons were having the wrong object passed to them * small change to previous commit for more concise syntax * style: blackout dialog has sensible width on small (laptop) devices * fix: checkboxes being selected auto-select other checkboxes * pushing broken CustomerList.vue * fixed data-table for PermList * fix: fixed data-table for UserList page * fix: fixed data-table for GroupList page * add missing nunjucks library after rebasing from master. Replaced package-lock.json since libraries are updated for vue3. * partial fix of customer, heartbeat, about pages * fix: alert selection buttons * fix: alert data columns being rendered twice * fix: alerts not being selected based on id * fix: item props not being passed to heartbeatlist * fix: headers display on apikeylist * fix: manifest uses item props * fix: heartbeatlist and userlist formatting * fix: checkbox on userlist not showing checked state * fix: user filter works properly * fix: saved alert searches show up in sidebar * fix: improper data being displayed in the value column on the about page * fix: custom filter for permissions and users search * fix: changed v-list-item-avatar to v-avatar * fix: filters for userlist and permlist not updating when filtering by scopes/roles * fix: bulk alert actions now work and checkboxes don't get selected * fix: fixed display density on Alerts page to use compact/comfortable styling * removed overlapping text in Filter panel * fix: fixed reports filter sidebar styling * fix: apikeylist copy tooltip and breakpoint sizes for add menu * fix: datetime tooltips not being displayed above * fix: form validation and date range picker * style: width of date/time selection boxes widened on desktop * fix: last note receives full alert object * style: dark theme settings cover entire app * fix: saved searches show up in dropdown * style: proper formatting on settings page * fix: sliders being delayed on settings page * fix: removed duplicate 'Sintony' font option in /settings * fix: fixed display density not updating when an Alert was selected * revert: font name displayed in language settings * fix: font settings sliders not getting default values when preferences are reset style: alert checkboxes expanding row height * fix: spacing of alert actions floating bar It was too low, causing flickering because it would get rapidly hovered and unhovered whenever the mouse was on its resting position * style: alert action buttons don't flicker * fix: remove items per page setting on About page * fix: selected tab on alerts list not being underlined * refactor: update font size/weight to use v-slider events * style: active density option is highlighted * fix: filter indicator * fix: sidesheet filters pushing main content when expanded * fix: alert filter drawer closing when URL changes * style: icon for page links in the leftside menu appear on the same line * fix: alerts and reports date filter not displaying the correct text when selected * partial login and signup style changes * fixed vertical and horizontal centering of login pages * fixed toggle icons on signup and login page * temp fix: native HTML date picker for components that used v-date-picker * fix: sorting v-data-tables * migrated from :label to :placeholder in login and signup * fixed spacing and button styling for profile page * fix: v-data-table not using custom rows per page * fix: various components not rendering when in fullscreen * fix: help link not showing appended icon * fix: value and text width setting not being used * style: labels for fields on the profile page * fix: customer data being shown when customer views is false * fix/style: bugged addUser function for groups/ search bars appearing below page headings * fix: pointless items per page selection on reports page * style: alert detail details tab uses a table instead of div * style: alert toggle switch changes color when active * fix: fixed overlapping text in alert filter tab * made username in profile page full width * changed width of error/warning messages in several pages * fixed alertFilter vertical spacing + styling issues * style: filter sidemenus and date range select * style: centered username and email on profile page, chips for filters --------- Co-authored-by: Zakareya Alatoli <zakareya.m.alatoli@gmail.com> Co-authored-by: Gabby Niamat <gniamat@uwo.ca>
18 lines
534 B
JavaScript
18 lines
534 B
JavaScript
module.exports = {
|
|
moduleFileExtensions: ['js', 'jsx', 'json', 'vue', 'ts', 'tsx'],
|
|
transform: {
|
|
'^.+\\.vue$': 'vue-jest',
|
|
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
|
|
'jest-transform-stub',
|
|
'^.+\\.tsx?$': 'ts-jest',
|
|
'^.+\\.jsx?$': 'babel-jest',
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1'
|
|
},
|
|
snapshotSerializers: ['jest-serializer-vue'],
|
|
testMatch: [
|
|
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
|
|
],
|
|
testURL: 'http://localhost/'
|
|
}
|