- I added comments indicating my thought processes and intent
I answered ES6 questions in Markdown.
/es6-questions/q${n}.md
- variable n is question no.
- Using NO dependencies other than vue itself - taking that VanillaJS and no frameworks requirement seriously - also excluding any external libraries - going to extreme lengths to avoid dependencies
- (Still includes ionicons + google fonts via cdn - want it to look nice)
You can enable it using
Vue.config.devtools = true
(done in ./vue-searchable-table-task/src/main.js
)
Visible at http://mwb.test-tasks.siig.ee/ (production build)
cd vue-searchable-table-task
yarn install
yarn run serve
cd vue-searchable-table-task
yarn install
yarn run build
Outputs to ./vue-searchable-table-task/dist/
folder.
cd vue-searchable-table-task
yarn install
yarn run test
- ...use vuex for data management
- ...use axios library for api calls (though not for something as basic as this)
- ...use lodash or similar for debouncing (not write my own)
- ...(probably) use a pre-made infinite scroll library
- ...use fewer CSS hacks, e.g. table header shadow
- ...use something like Bloodhound.js for searching on the client side OR
- ...do most of the search, filtering, etc. logic on the server side using purpose-built tools
- write my own SCSS from scratch
- follow the same general Vue approaches (similar component composition) - however using
vuex
would reduce the size and complexity of the main components considerably and allow for easier composition, as much of the logic would reside on that side
- Add some useful tests