Commit Graph

245 Commits

Author SHA1 Message Date
Daniël Klabbers
556d461cfb chore: update v1.4 constraints and update issues url 2022-07-12 23:30:03 +02:00
Sami Mazouz
abc12b4ba5
chore: add .gitattributes to extensions to export-ignore files. (#3513)
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-07-08 20:38:20 +01:00
Sami Mazouz
2e840dc73d
test(sticky): list discussions works as expected with stickies (#3507)
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-07-08 19:07:03 +01:00
Sami Mazouz
27fb011bf5
chore: with yarn workspaces we only need a single yarn.lock (#3464)
* chore: yarn workspaces means we only need a single `yarn.lock`
* fix: add a `cache_dependency_path` workflow input
* fix: re-introduce `env.cache_dependency_path`
2022-06-19 19:01:21 +01:00
Daniël Klabbers
592039c483 update constraint to v1.3 2022-05-10 16:28:35 +02:00
flarum-bot
105481a181 Bundled output for commit b95b3646d3
Includes transpiled JS/TS.

[skip ci]
2022-03-28 20:49:53 +00:00
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
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
Daniel Klabbers
9db4981f80 Release v1.2 2022-01-20 12:49:18 +01:00
flarum-bot
6f33f8273b Bundled output for commit 5c6f17d508
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:55:26 +00:00
Alexander Skvortsov
5c6f17d508 chore: flarum-cli audit infra --fix 2022-01-20 03:53:51 -05:00
flarum-bot
92f16d3300 Bundled output for commit aba58f453a
Includes transpiled JS/TS.

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

* Update imports
2022-01-11 10:44:22 +00:00
David Wheatley
8c0c46f8e0 chore: bump bundled extension constraint to core 1.1 2021-10-13 08:05:34 +01:00
Alexander Skvortsov
72d43427ab Release v1.1.0 2021-10-11 21:16:13 -04:00
flarum-bot
8e912e9e7b Bundled output for commit 3e3fa6535d
Includes transpiled JS/TS.

[skip ci]
2021-09-20 15:07:38 +00:00
David Wheatley
3e3fa6535d Repo maintenance (#30)
* Bump deps; add TS support; use Prettier

* Format

* Update js/package.json

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>

* Update lockfile

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2021-09-20 16:06:32 +01:00
Sami Mazouz
3e962c5e0f Use css variables for badge (#29) 2021-08-16 10:18:32 +01:00
flarum-bot
ab2a198aa3 Bundled output for commit bbca24a873
Includes transpiled JS/TS.

[skip ci]
2021-08-16 09:03:01 +00:00
David Wheatley
bbca24a873 Add classes to sticky discussions (#31) 2021-08-16 11:01:54 +02:00
Daniel Klabbers
4d8dd09abc fix branch alias 2021-05-25 22:52:41 +02:00
Daniel Klabbers
15e5c9bf0f changes for stable 2021-05-25 16:36:04 +02:00
Alexander Skvortsov
d8a0d1e6f7 Bump composer reqs for 1.0.0 2021-05-16 18:29:18 -04:00
David Wheatley
a3b9924e40 Update copyright year 2021-05-15 00:57:44 +01:00
Alexander Skvortsov
258fe6d158 Apply fixes from StyleCI 2021-04-12 02:29:32 +00:00
Alexander Skvortsov
078441204d Use criteria's sortIsDefault field
This was introduced in https://github.com/flarum/core/pull/2773, and allows us to more cleanly determine whether the sort requested is the default one, while taking extension modifications into account.
2021-04-11 22:29:20 -04:00
Daniel Klabbers
4805b7d2ee Release v0.1.0-beta.16 2021-03-15 12:33:03 +01:00
Alexander Skvortsov
b14d24964f Apply fixes from StyleCI 2021-03-13 21:01:56 +00:00
SychO9
72ad775840 Update to beta.16 2021-03-13 16:00:50 -05:00
Charlie
2a74e2ceca Change Category (#27) 2021-03-08 14:32:52 -05:00
Robert Korulczyk
d0452d6e89 Move locale files from language pack to extension. (#21) 2021-02-17 16:25:16 -05:00
Alexander Skvortsov
a76ad6ca48 Update changelog for v0.1.0-beta.15.1 2021-01-25 20:03:54 -05:00
flarum-bot
0abbe627d0 Bundled output for commit 768fc0d653 [skip ci] 2021-01-22 18:54:03 +00:00
Sami Mazouz
768fc0d653 Fix evaluation of post content by m.trust() (#24) 2021-01-22 13:53:11 -05:00
flarum-bot
9b65d4cbc8 Bundled output for commit 4dbc7369a2 [skip ci] 2021-01-20 03:23:08 +00:00
Ian Morland
4dbc7369a2 Restrict post excerps to IndexPage and DiscussionPage only #2066 (#25) 2021-01-19 22:22:20 -05:00
Ian Morland
82c57cd36a Add is_sticky, last_posted_at index to improve performance (#23)
This PR introduces an additional index [is_sticky, last_posted_at] to the discussions table. We discovered that when viewing discussions in a tag with a large number of discussions (approx 1.4M in our case), performance was poor when using the default sort criteria (sort by latest).
2021-01-13 14:18:38 -05:00
Daniël Klabbers
8e3e51a613 changelog and constraint for beta 15 2020-12-15 09:28:40 +01:00
Daniël Klabbers
69997f188b npm audit fix 2020-12-15 09:27:52 +01:00
Alexander Skvortsov
2712afc81e Make listener methods static
This is needed since we're listening to the individual methods of the class, as opposed to registering the class as a subscriber.
2020-12-10 23:34:54 -05:00
Alexander Skvortsov
ea55ceeacb Update composer metadata for admin dashboard 2020-12-08 19:58:07 -05:00
Alexander Skvortsov
c7837f801e Use event extender where possible
filter extender will eliminate the last callback-style extender before stable.
2020-12-08 12:34:32 -05:00
Sami Mazouz
01549123c0 Use new extenders (#22) 2020-12-08 11:53:05 -05:00
flarum-bot
826ecb72fa Bundled output for commit d7c93fcdec [skip ci] 2020-11-25 06:33:34 +00:00
Alexander Skvortsov
d7c93fcdec Add composer metadata for admin ux redesign 2020-11-25 01:32:18 -05:00
Alexander Skvortsov
27fa6456ec Update admin js for admin ux redesign 2020-11-25 01:31:19 -05:00
Daniël Klabbers
0d43d5836f changelog and dep for v0.1.0-beta.14 2020-10-15 15:57:40 +02:00
Daniël Klabbers
28749eb2b1 npm audit security vulnerabilities patched 2020-10-14 10:01:20 +02:00
flarum-bot
91078a0ee7 Bundled output for commit a2aedaa2e1 [skip ci] 2020-09-29 14:41:24 +00:00
Sami Mazouz
a2aedaa2e1 Fix sticky discussion excerpt (#20) 2020-09-29 10:40:19 -04:00
flarum-bot
fe02967de0 Bundled output for commit 418e656c9e [skip ci] 2020-09-24 02:57:17 +00:00
Alexander Skvortsov
418e656c9e Mithril 2 Update (#19)
Update for Mithril 2
2020-09-23 22:56:13 -04:00
dependabot[bot]
7bf581d635 Bump elliptic from 6.5.2 to 6.5.3 in /js (#18)
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:19 +02:00
Matt Kilgore
38c0e3c500 Removes AssertPermissionTrait (#17)
* Removes AssertPermissionTrait

* Fix my dumb mistake
2020-07-20 07:59:16 +02:00
dependabot[bot]
bab0e072b3 Bump lodash from 4.17.15 to 4.17.19 in /js (#16)
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:48:06 +02:00
flarum-bot
4352aed1a2 Bundled output for commit 38be86ec51 [skip ci] 2020-06-26 14:06:48 +00:00
Franz Liedke
38be86ec51 Fix extension to work with latest state changes
Refs flarum/core#2150, flarum/core#2156.
2020-06-26 16:05:35 +02:00
Alexander Skvortsov
ce66d7d43b Add empty locale extender to clear cache properly on enable/disable.
See https://github.com/flarum/core/pull/2020#issuecomment-616149583
2020-06-19 22:16:32 -04:00
Daniël Klabbers
df7d4d1907 incorrect compared versions in changelog 2020-05-04 10:42:34 +02:00
Daniël Klabbers
e05857602b Release v0.1.0-beta.13 2020-05-04 10:38:45 +02:00
Franz Liedke
c134f037dd Update Webpack 2020-05-01 11:56:02 +02:00
Franz Liedke
fbd50d390a npm audit fix 2020-04-24 14:30:30 +02:00
dependabot[bot]
9e22f00a76 Bump acorn from 6.4.0 to 6.4.1 in /js (#15)
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:27:00 +01:00
Daniël Klabbers
8f3d9dfee1 remove author, updated deps 2020-03-03 14:40:42 +01:00
flarum-bot
724f7218d6 Bundled output for commit b6c240409d [skip ci] 2020-02-11 20:44:07 +00:00
Franz Liedke
b6c240409d Update Webpack 2020-02-11 21:43:01 +01:00
Franz Liedke
e9f298bf89 Apply fixes from StyleCI 2019-11-29 23:02:29 +00:00
Franz Liedke
ae2d9afe9c Update copyright claims in LICENSE 2019-11-30 00:01:03 +01:00
Franz Liedke
f85f1a7e06 Update vulnerable JS dependencies 2019-09-13 15:28:40 +02:00
Franz Liedke
06eee0929e Add GitHub workflow for JavaScript building 2019-08-20 23:54:25 +02:00
Daniël Klabbers
9c7cbcef36 update constraint 2019-06-24 12:04:24 +02:00
Daniël Klabbers
93a6163f48 changelog for 0.1.0-beta.9, with the correct link 2019-06-24 11:50:45 +02:00
Daniël Klabbers
b39c439c73 changelog for 0.1.0-beta.9 2019-06-24 11:50:21 +02:00
Franz Liedke
876c5d3a10 Add changelog 2019-02-15 00:30:51 +01:00
Daniël Klabbers
bb6ed4a764 revert the fix index names logic, preparing for illuminate 5.7 2019-01-15 21:01:44 +01:00
Toby Zerner
6b705793eb Fix travis builds 2018-12-04 10:16:33 +10:30
Toby Zerner
d497e65d21 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:34:00 +10:30
Toby Zerner
97c1472786 Remove sudo: false
See https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
2018-11-21 18:57:14 +10:30
flarum-bot
6fb378cf98 Bundled output for commit b04eb88fa5 [skip ci] 2018-11-21 08:22:38 +00:00
Toby Zerner
b04eb88fa5 Make npm package private, update deps, change watch to dev 2018-11-21 18:45:58 +10:30
Toby Zerner
d79f36ceda Remove copyright year from LICENSE 2018-11-21 18:37:21 +10:30
Toby Zerner
23edafc47a Update dependencies 2018-11-17 18:53:38 +10:30
flarum-bot
9a9dc0e5e0 Bundled output for commit a570d41f68 [skip ci] 2018-10-21 04:51:59 +00:00
Toby Zerner
a570d41f68 Rename package 2018-10-21 15:16:21 +10:30
Toby Zerner
a30d89677b Rename package 2018-10-17 13:44:48 +10:30
Toby Zerner
aa386b2878 Add database indices. ref flarum/core#127 (#12) 2018-09-24 23:49:55 +02:00
Toby Zerner
41fd579963 Rename bootstrap.php 2018-09-21 11:47:36 +09:30
flarum-bot
b6715fb21c Bundled output for commit 2b5cf3a021 [skip ci] 2018-09-21 01:04:13 +00:00
Toby Zerner
2b5cf3a021 Update dependencies 2018-09-21 10:25:47 +09:30
flarum-bot
9d0a3d5101 Bundled output for commit c4692d2bcd [skip ci] 2018-09-16 18:52:33 +00:00
Toby Zerner
c4692d2bcd Database changes (#11)
* Update core references

* Update remaining core references
2018-09-16 20:50:31 +02:00
Franz Liedke
6b67263f01 Ensure compatibility with DB table prefix 2018-08-03 01:24:17 +02:00
Franz Liedke
716428882d Use new Frontend extender
See flarum/core#851.
2018-07-23 16:30:22 +02:00
flarum-bot
067df578c9 Bundled output for commit c89b4f79f7 [skip ci] 2018-06-20 05:23:22 +00:00
Toby Zerner
c89b4f79f7 Fix Travis' deploy key 2018-06-20 14:27:18 +09:30
Toby Zerner
d7b0d5c42c Remove progress flag 2018-06-20 13:54:01 +09:30
Toby Zerner
70f2b63bf5 Webpack (#10)
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:36:00 +09:30