6 Commits
Author SHA1 Message Date
Tucker McKnightandBenjamin Brahmer 36d304ec76 Use front-end translation function
PHP is not parsing the Vue components, so use Nextcloud's
t() Javascript function instead. This commit adds t() as a
global variable on the AppController so that it can be
passed into components.

Also move vue-loader and vue-template-compiler to devDependencies
in package.json.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-07-19 14:58:49 +02:00
Tucker McKnightandBenjamin Brahmer 83cdcb016b Add a Vue component, remove extras
Fixes the problem of the vue components directory not
existing. Also removed the demo components that were
not meant to be committed.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-07-19 14:58:49 +02:00
Tucker McKnightandBenjamin Brahmer 3344431a9b Update changelog
Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-07-19 14:58:49 +02:00
Tucker McKnightandBenjamin Brahmer d2a5c26ee1 Update package-lock.json
Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-07-19 14:58:49 +02:00
Tucker McKnightandBenjamin Brahmer 8809bb2c56 Add Vue and ng-vue packages
Also adds related parts for compiling Vue components
into the existing Javascript bundle.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-07-19 14:58:49 +02:00
Tucker McKnightandBenjamin Brahmer 5ba6f04bae Fix incorrect article sorting
Currently, an article with an ID of 1000 will show up
earlier than one with ID = 900, because the IDs are being treated
as strings and compared alphabetically. (1 comes before 9, and
the comparison stops there.)

We need to parse them as integers to ensure that 900 is less than
1000.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-02-22 19:44:33 +01:00