Commit Graph

146 Commits

Author SHA1 Message Date
Alexander Skvortsov
a595665bfb
fix: Assorted Typing Fixes (#3348)
With all the commits below, we resolve all outstanding typing issues in the repo, and CI jobs run green.

* fix: Convert DashboardPage and DashboardWidget to TypeScript

* fix: fix type errors in package manager ext

* fix: Convert Post component to TypeScript

* fix: avatar typings should accept null user

* fix: convert Notification component to TypeScript

* fix: properly use `typeof` in ForumApplication

* feat: make Notification content attr generic

* chore: format Notification component

* fix: Convert DiscussionRenamedNotification to TypeScript

* fix(pusher) move shims to a location where they get applied

* fix(pusher): fix some typing errors

* fix(akismet): fix some typing issues

* chore: update core dist typings

* chore(pusher): format

* fix: anchorScroll should accept string selectors

* fix: more accurately represent ApiQueryParamsPlural

* fix: convert PostStreamState to TypeScript

* chore(core): rebuild typings

* feat: allow extending app.routes

* fix: more flexible typings for highlight.ts

* fix: use primitive `number` type for Discussion typings

* fix: convert DiscussionListItem to TypeScript

* chore: rebuild core typings

* fix: final pusher type fixes

* feat: start tags TypeScript conversion

* fix: require-dev tags in pusher for CI TypeScript purposes.

* chore(core): format

* chore(tags): build dist typings

* feat(pusher): use dist types from tags.

* feat: convert flags to TypeScript

* chore(flags): generate dist typings

* fix(akismet): last type errors

* chore: update .yarn-integrity

* chore: partially run flarum-cli audit infra --fix

The tsconfig changes from that command are ignored, since we don't yet support "replacable sections" that would let us add custom config.

* chore: use type imports

* fix: broader gitattributes

* chore: run flarum-cli audit infra --monorepo --fix

* feat: make `app.data` typings extensible

* chore(core): format

* chore: boost tags TypeScript coverage

* fix(tags): further increase type coverage.
2022-03-23 11:43:14 -04:00
Alexander Skvortsov
f2910d8763 chore: add version to core/ext package.json
This is necessary for yarn workspaces to work.
2022-03-11 19:12:11 -05:00
dependabot[bot]
37a882118a
chore(deps): bump glob-parent from 3.1.0 to 5.1.2 in /extensions/emoji/js (#3345)
* chore(deps): bump glob-parent in /extensions/emoji/js

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 3.1.0 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Apply fixes from StyleCI

[ci skip] [skip ci]

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-03-11 18:11:20 -05:00
Alexander Skvortsov
5fc0b4963a chore: flarum-cli audit infra --fix 2022-03-11 18:02:51 -05:00
Alexander Skvortsov
693da58c41 chore: set up composer path repos 2022-03-11 18:02:49 -05:00
Alexander Skvortsov
2bf6b12a64 chore: remove centralizable repo config
- Remove .github conf folder from Flarum packages

- Remove styleci config from all packages
2022-03-11 18:01:44 -05:00
flarum-bot
0d73e82b0b Bundled output for commit f3d0bdce47
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-01-27 21:02:31 +00:00
Alexander Skvortsov
f3d0bdce47 chore: convert to TypeScript 2022-01-27 15:58:04 -05:00
Alexander Skvortsov
2a31ea1c15 chore: flarum-cli audit infra --fix 2022-01-27 15:58:04 -05:00
Daniel Klabbers
73975799c9 Release v1.2 2022-01-20 12:48:09 +01:00
Alexander Skvortsov
3dd9472647 chore: flarum-cli audit infra --fix 2022-01-20 03:52:02 -05:00
flarum-bot
b1415b4d3c Bundled output for commit b07c98b5d9
Includes transpiled JS/TS.

[skip ci]
2022-01-11 10:46:29 +00:00
Ian Morland
b07c98b5d9 chore: repo maintenance (#16)
* Bump deps

* Update namespaces

* Format
2022-01-11 10:45:14 +00:00
flarum-bot
aebd638097 Bundled output for commit ea5994f2e4
Includes transpiled JS/TS.

[skip ci]
2021-10-13 10:53:15 +00:00
David Wheatley
ea5994f2e4 chore: fix JS 2021-10-13 11:52:14 +01:00
David Wheatley
8a76bf0fca chore: bump bundled extension constraint to core 1.1 2021-10-13 08:02:48 +01:00
flarum-bot
444c64bc4c Bundled output for commit 941647cde0
Includes transpiled JS/TS.

[skip ci]
2021-10-12 01:27:17 +00:00
Alexander Skvortsov
941647cde0 Release v1.1.0 2021-10-11 21:15:40 -04:00
Daniel Klabbers
c389c7bf9e fix branch alias 2021-05-25 22:52:30 +02:00
Daniel Klabbers
4dade0b078 changes for stable 2021-05-25 16:33:25 +02:00
Alexander Skvortsov
44a3ecd261 Bump composer reqs for 1.0.0 2021-05-16 18:29:11 -04:00
David Wheatley
c58153cefb Update copyright year 2021-05-15 00:57:25 +01:00
Daniel Klabbers
78ad65c6c1 Release v0.1.0-beta.16 2021-03-15 12:20:50 +01:00
Robert Korulczyk
eb458b6700 Move locale files from language pack to extension. (#13) 2021-02-17 16:25:40 -05:00
flarum-bot
ed6035c674 Bundled output for commit 3b838dfd01 [skip ci] 2021-01-05 21:41:50 +00:00
SKmedix
3b838dfd01 🐛 Make sure summed value is a number (#14) 2021-01-05 16:41:00 -05:00
Daniël Klabbers
aaf3bc309c changelog and constraint for beta 15 2020-12-15 09:26:39 +01:00
Daniël Klabbers
22a5b3e381 npm audit fix 2020-12-15 09:24:26 +01:00
Alexander Skvortsov
f0bbedb638 Update composer metadata for admin dashboard 2020-12-08 19:57:56 -05:00
Alexander Skvortsov
9c60a0f9f3 Move AddStatisticsData out of Listener folder since it isn't a listener 2020-12-08 13:08:26 -05:00
flarum-bot
b7eba11c91 Bundled output for commit a426b1115c [skip ci] 2020-11-25 06:30:16 +00:00
Alexander Skvortsov
a426b1115c Add composer metadata for admin ux redesign 2020-11-25 01:29:06 -05:00
Alexander Skvortsov
3b86682f84 Update admin JS for admin ux redesign 2020-11-25 01:28:33 -05:00
Daniël Klabbers
9b59494f99 changelog and dep for v0.1.0-beta.14 2020-10-15 15:52:32 +02:00
Daniël Klabbers
1059555baa npm audit security vulnerabilities patched 2020-10-14 10:00:45 +02:00
flarum-bot
1f44b5a4c8 Bundled output for commit a2049ebbb8 [skip ci] 2020-09-24 02:56:26 +00:00
Alexander Skvortsov
a2049ebbb8 Mithril 2 Update (#12)
Update for Mithril 2
2020-09-23 22:55:38 -04:00
flarum-bot
1e6f94c366 Bundled output for commit 2d923c83a1 [skip ci] 2020-08-28 16:12:36 +00:00
Franz Liedke
2d923c83a1 Use dayjs, not moment.js
Refs flarum/core#2219.
2020-08-28 18:11:47 +02:00
dependabot[bot]
ff5c0edce7 Bump elliptic from 6.5.2 to 6.5.3 in /js (#11)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:09:09 +02:00
dependabot[bot]
a49b663989 Bump lodash from 4.17.15 to 4.17.19 in /js (#10)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 10:47:20 +02:00
Franz Liedke
80376d24b1 Apply fixes from StyleCI 2020-06-20 01:43:47 +00:00
Alexander Skvortsov
a1ede6503c Add empty locale extender to clear cache properly on enable/disable.
See https://github.com/flarum/core/pull/2020#issuecomment-616149583
2020-06-19 21:43:34 -04:00
Franz Liedke
f1791fc05a Release v0.1.0-beta.13 2020-05-01 10:43:01 +02:00
Franz Liedke
3f2b1bd459 Update Webpack 2020-05-01 10:32:41 +02:00
flarum-bot
25ba9b70a5 Bundled output for commit 8b2c90c142 [skip ci] 2020-04-24 12:32:41 +00:00
Franz Liedke
8b2c90c142 npm audit fix 2020-04-24 14:30:30 +02:00
dependabot[bot]
ae3e4801de Bump acorn from 6.4.0 to 6.4.1 in /js (#9)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:24:49 +01:00
Daniël Klabbers
06b21b3fc5 remove author, updated deps 2020-03-03 14:33:22 +01:00
flarum-bot
8bfd6bfb80 Bundled output for commit b94ce4993a [skip ci] 2020-02-26 07:03:38 +00:00
Franz Liedke
b94ce4993a Update Webpack 2020-02-26 08:02:40 +01:00
Franz Liedke
79c7cf00d4 Apply fixes from StyleCI 2019-11-29 23:17:19 +00:00
Franz Liedke
5acef506d4 Update copyright claims in LICENSE 2019-11-30 00:01:03 +01:00
Franz Liedke
f9ad3d36e4 Update vulnerable JS dependencies 2019-09-17 23:17:45 +02:00
Franz Liedke
21442688f1 Add GitHub workflow for JavaScript building 2019-08-20 23:54:25 +02:00
Daniël Klabbers
aa7f367cb3 update constraint 2019-06-24 12:04:33 +02:00
Daniël Klabbers
664ed52373 changelog for 0.1.0-beta.9 2019-06-24 11:52:02 +02:00
Franz Liedke
f00f3c985a Add changelog 2019-02-15 00:30:50 +01:00
flarum-bot
7492d7e610 Bundled output for commit f1beefc939 [skip ci] 2018-12-03 23:53:24 +00:00
Toby Zerner
f1beefc939 Fix travis builds 2018-12-04 10:16:33 +10:30
Franz Liedke
fcff84fd96 Adopt latest frontend/assets refactoring 2018-11-22 21:59:37 +01:00
Toby Zerner
a70dbf0b46 Make npm package private, update deps, change watch to dev 2018-11-22 07:10:31 +10:30
Toby Zerner
589b27bb7d Remove sudo: false
See https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
2018-11-22 07:09:18 +10:30
Toby Zerner
11bc314177 Remove copyright year from LICENSE 2018-11-22 07:08:59 +10:30
flarum-bot
ffd7ac82b9 Bundled output for commit 82534ea43f [skip ci] 2018-11-10 00:51:10 +00:00
Toby Zerner
82534ea43f Re-add some missing options, simplify CSS 2018-11-10 11:16:09 +10:30
David Sevilla Martín
f4a4f0defa Update frappe-charts, use Frontend extender, fix color & comparison CSS 2018-10-21 16:44:06 -04:00
Franz Liedke
6d2ebadcbf Use Frontend extender for embedding statistics in admin frontend
Refs flarum/core#1602, flarum/core#1608.
2018-10-21 22:36:19 +02:00
Toby Zerner
54266ea341 Rename package 2018-10-21 15:16:05 +10:30
Franz Liedke
0d592cfcff Adopt database changes in flarum/core 2018-10-21 00:58:43 +02:00
Franz Liedke
aee0d4a856 Rename bootstrap.php 2018-10-17 23:41:09 +02:00
Arda Çebi
39bf15f026 Icon addition (#6) 2018-08-19 23:34:22 +02:00
Wiwat Srisattha
7672d610c3 Use new Frontend extender (#5)
* Update bootstrap.php

* Update bootstrap.php
2018-07-27 11:38:42 +02:00
flarum-bot
522bae8f30 Bundled output for commit d81f7509b4 [skip ci] 2018-06-20 05:24:52 +00:00
Toby Zerner
d81f7509b4 Fix Travis' deploy key 2018-06-20 14:27:52 +09:30
Toby Zerner
ad22ac4289 Remove progress flag 2018-06-20 13:57:31 +09:30
Toby Zerner
6eae43688e Webpack (#4)
See https://github.com/flarum/core/pull/1367

* Replace gulp with webpack and npm scripts for JS compilation
* Set up Travis CI to commit compiled JS
* Restructure `js` directory; only one instance of npm, forum/admin are "submodules"
* Restructure `less` directory
2018-06-20 13:35:48 +09:30
Ammar Fadhlur Rahman
bc8960c3ec Change fa icon prefix to fas 2018-05-10 15:02:22 +07:00
AFR
cc50059f57 Adapt to FontAwesome v5.0.6 icon name changes (#2) 2018-02-23 23:44:35 +01:00
Miles Cellar
6d8a50942f Update license year range to 2018 2018-01-15 19:36:58 +01:00
Toby Zerner
dd0a7d9163 Require beta 8 2018-01-11 12:26:40 +10:30
Toby Zerner
21f99335bf Fix a stray class name 2017-12-27 16:06:37 +10:30
Toby Zerner
cd2d56fd99 lists → pluck for Laravel 5.5 2017-12-27 16:06:27 +10:30
Toby Zerner
a1fe93f355 Update namespaces for beta 8 2017-12-27 09:52:45 +10:30
Toby Zerner
88228df6f2 Clean up some variable/method names 2017-12-19 08:57:55 +10:30
Toby Zerner
d827fd36fe Prevent statistics from being loaded outside of admin
closes flarum/core#1311
2017-12-19 08:52:13 +10:30
Toby Zerner
d56b792a9d I think we're finally good with the timezone stuff now?
MySQL's UNIX_TIMESTAMP function interprets the date using MySQL's
configured timezone, which we don't want (may be misconfigured etc).
Instead, now we do the conversion to a timestamp on the PHP side. Then
JavaScript is given the offset between UTC and the configure timezone
so it can work out how to display the data.
2017-12-11 22:42:51 +10:30
Toby Zerner
6857d32d22 Add "today" period with hourly breakdown, and fix timezone issues
This fix ensures that before aggregating daily/hourly statistics, dates
are converted into the local timezone ("flarum-statistics.timezone" in
the settings table).
2017-12-11 19:01:38 +10:30
Toby Zerner
8860def12e Only show this period's value in tooltip 2017-12-11 18:53:47 +10:30
Toby Zerner
b65ad8a5ce Only update chart values if needed 2017-12-11 18:52:54 +10:30
Toby Zerner
3f1f92b565 Show a tick next to the selected period 2017-12-11 18:48:32 +10:30
Toby Zerner
ae063b52e8 Fix date range sometimes leaving out today 2017-12-11 07:52:48 +10:30
Toby Zerner
898469e398 Display tweaks 2017-12-11 07:52:05 +10:30
Toby Zerner
410dd2c679 Set default period to last 7 days 2017-12-10 21:26:54 +10:30
Toby Zerner
1780448e70 Abbreviate numbers 2017-12-10 21:26:42 +10:30
Toby Zerner
a595d9e846 Initial commit 2017-12-10 21:11:13 +10:30