Граф коммитов

91 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] cc10a8cd26
Bump qs and browser-sync
Bumps [qs](https://github.com/ljharb/qs) to 6.11.0 and updates ancestor dependency [browser-sync](https://github.com/BrowserSync/browser-sync). These dependencies need to be updated together.


Updates `qs` from 6.2.3 to 6.11.0
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.2.3...v6.11.0)

Updates `browser-sync` from 2.27.10 to 2.27.11
- [Release notes](https://github.com/BrowserSync/browser-sync/releases)
- [Changelog](https://github.com/BrowserSync/browser-sync/blob/master/CHANGELOG.md)
- [Commits](https://github.com/BrowserSync/browser-sync/compare/v2.27.10...v2.27.11)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
- dependency-name: browser-sync
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 08:44:03 +00:00
Tasos Katsoulas b6dc08a4e2
Introduce urql client 2022-10-14 16:54:19 +03:00
Leo McArdle b05b8eb3b7
add svelte html pre-rendering 2022-10-14 16:53:49 +03:00
Leo McArdle e8d178c936
ensure (s)css is handled properly by svelte (#5023)
involved some re-jigging of our scss files to ensure that unnecessary
bits of css weren't imported into svelte components when attempting to
import mixins or variables, as well as ensure imports are resolvable
by svelte-preprocess
2022-10-14 16:53:49 +03:00
Leo McArdle 3800193c73
svelte scaffolding for contribute pages (#5019) 2022-10-14 16:53:49 +03:00
Tasos Katsoulas ecdae52ff3
Merge pull request #5219 from mozilla/dependabot/npm_and_yarn/nanoid-and-mocha-3.3.1
Bump nanoid and mocha
2022-09-26 13:35:31 +03:00
dependabot[bot] 1882420fd0
Bump engine.io and browser-sync
Bumps [engine.io](https://github.com/socketio/engine.io) and [browser-sync](https://github.com/BrowserSync/browser-sync). These dependencies needed to be updated together.

Updates `engine.io` from 3.5.0 to 6.2.0
- [Release notes](https://github.com/socketio/engine.io/releases)
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io/compare/3.5.0...6.2.0)

Updates `browser-sync` from 2.27.7 to 2.27.10
- [Release notes](https://github.com/BrowserSync/browser-sync/releases)
- [Changelog](https://github.com/BrowserSync/browser-sync/blob/master/CHANGELOG.md)
- [Commits](https://github.com/BrowserSync/browser-sync/compare/v2.27.7...v2.27.10)

---
updated-dependencies:
- dependency-name: engine.io
  dependency-type: indirect
- dependency-name: browser-sync
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-09 14:07:38 +00:00
dependabot[bot] aadcc8ecbb
Bump nanoid and mocha
Bumps [nanoid](https://github.com/ai/nanoid) and [mocha](https://github.com/mochajs/mocha). These dependencies needed to be updated together.

Updates `nanoid` from 3.1.30 to 3.3.1
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.3.1)

Updates `mocha` from 9.1.3 to 9.2.2
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.3...v9.2.2)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
- dependency-name: mocha
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-09 14:07:13 +00:00
smith cdff6d5422
[1079] Upgrade jQuery (#5196)
* [1079] Upgrade jQuery

Upgraded many files to comply with jQuery event listener changes, upgraded to latest jQuery.

* [1079] - Update jQuery

Repaired some find/replace artifacts (errors!!) in six js files.

* [1079] Fix package lock issues

* Removed jquery-migrate

Co-authored-by: Smith Ellis <smitheq@smitheq-42lg75.lan>
2022-08-15 13:00:54 +03:00
Leo McArdle 4703755e26
support windows 11 in browserdetect (#4998)
rewrite BrowserDetect to support multiple detection methods (ua, hints, remote troubleshooting)
rewrite AAQSystemInfo to remove duplicated UA parsing, and rely on BrowserDetect instead
modify RemoteTroubleshooting to use async
remove unused/unusable fields from AAQ config (device and plugins)

https://github.com/mozilla/sumo/issues/966
2022-03-15 13:53:42 +00:00
Leo McArdle 1458e71103 do gzip and brotli compression in webpack 2022-03-10 15:08:23 +02:00
Leo McArdle f96a54adce
upgrade node to lts, and upgrade dependencies (#4977)
remove unused dependencies
2022-01-11 15:43:26 +00:00
Leo McArdle a582a1a9cd update styleguide to work with webpack
https://github.com/mozilla/sumo-project/issues/894
2021-12-17 13:07:09 +00:00
Leo McArdle 97a7514315 fix tests to work with webpack
run tests through webpack first, then mocha
reorganise webpack config files
2021-12-17 12:51:02 +00:00
Leo McArdle a0607bd898 remove Modernizr 2021-12-17 12:51:02 +00:00
Leo McArdle f18c0e9c4d only import required underscore functions
this requires updating the library
2021-12-17 12:51:02 +00:00
Leo McArdle 4ecb30b8ea import jquery (automatically), jquery-ui and jquery plugins
this allows webpack to handle our dependency tree for jquery and jquery-related modules, rather than requiring us to do it manually
2021-12-17 12:51:02 +00:00
Leo McArdle 1446f60f9c lint js for various import related rules, add to pre-commit 2021-12-17 12:51:02 +00:00
Leo McArdle 4dbcc061b1 update eslint to support es2021 syntax 2021-12-17 12:51:02 +00:00
Leo McArdle e25c549972 fix webpack imports in mocha tests
https://github.com/mozilla/sumo-project/issues/895
2021-12-16 11:23:17 +00:00
Leo McArdle af190ca93c optimise png/svg in webpack 2021-12-16 11:23:17 +00:00
Leo McArdle e016a742ba enable loading images from webpack in django 2021-12-16 11:23:17 +00:00
Leo McArdle 3134dec758
Merge branch 'master' into webpack 2021-10-18 13:56:24 +01:00
Tasos Katsoulas f6c6a60bb8
Bump npm packages.
* postcss, locutus, path-parse, color-string
2021-09-02 14:49:59 +03:00
Leo McArdle a5d506f2bc
Merge branch 'master' into webpack 2021-08-04 12:11:20 +01:00
Leo McArdle 6fa71d4ecd
remove moment.js (#4863)
https://github.com/mozilla/sumo-project/issues/921
2021-08-04 11:57:11 +01:00
Leo McArdle 4f0f4dcbf2
update docs to match our new frontend stack (#4860)
https://github.com/mozilla/sumo-project/issues/885
2021-08-04 11:52:54 +01:00
Leo McArdle 6d795dbc6a
remove django-pipeline (#4855)
https://github.com/mozilla/sumo-project/issues/884
2021-07-28 12:32:54 +01:00
Leo McArdle 8b3dd6ce28
fix npm install-related commands (#4845)
prepare_django_assets.js was still referenced in the npm postinstall hook
2021-07-19 16:40:00 +01:00
Tasos Katsoulas 5e4e5bafac
Remove prepare_django_assets script
* Add nvmrc into the project
* Set engines in package.json
2021-07-14 15:21:02 +03:00
Leo McArdle bfcd6bb250
replicate existing postcss setup in webpack (#4840)
https://github.com/mozilla/sumo-project/issues/877
2021-07-13 14:34:23 +01:00
Leo McArdle e15e1595ff run webpack build in docker
remove frontend-base image, do everything in staticfiles image
add STATIC_URL_WEBPACK to jinja context for use by webpack html entrypoint files
2021-07-13 10:57:39 +01:00
Leo McArdle 0e513ef754 load stylesheets through webpack
support stylesheet source maps
2021-07-12 16:37:48 +01:00
Leo McArdle 8c774bec27 expose globals in webpack
this should get our js working properly
over time we can go through and remove these vars from the global scope,
instead importing them only in the files they're needed,
and take full advantage of what webpack has to offer
2021-07-12 16:37:48 +01:00
Leo McArdle 67bebd8f8f add basic webpack config, using previously defined entrypoints
load all javascript through webpack - it's mostly broken because we haven't exposed globals yet - that's our next step
2021-07-12 16:37:48 +01:00
Leo McArdle 17ca00e233
use eslint to find globals we need to add to webpack (#4826)
fix some js not using var where it should
2021-06-21 13:08:36 +01:00
Leo McArdle 64b8b8a9c3
delete a bunch of unused js (#4820) 2021-06-16 15:18:00 +01:00
Leo McArdle ecac012956
bump mocha-jsdom and fix tests (#4687) 2021-02-19 12:05:41 +00:00
Leo McArdle a5855b3de3
modify django-pipeline config to apply babel to select files (#4682)
update babel to latest version

https://github.com/mozilla/sumo-project/issues/768
2021-02-17 14:41:53 +00:00
Leo McArdle 5d06caadb5
remove top_contributors_new and dependencies (#4482) 2020-08-19 10:26:55 +01:00
Leo McArdle ff6efd65ca
run svgo when building staticfiles image (#4247) 2020-05-26 11:17:50 +01:00
Leo McArdle b02252e51e
vscode setup improvements: (#4381)
* add debug config
* don't launch kitsune on docker startup so it can't crash vscode
* add npm script for running browsersync/asset compilation in docker container
* expose browsersync ports
* add docs
2020-05-18 10:58:38 +01:00
Tasos Katsoulas 30cfe5e615 Handle css through collectstatic
* MD5 hashes for css.
2020-04-30 15:57:13 +03:00
Leo McArdle b1a0b27164
run npm ci when building the prod image 2020-03-20 11:47:26 +00:00
Kasey Kelly 32a6d683b3 CSS custom props polyfill for IE support 2020-03-09 11:37:03 -04:00
Kasey Kelly 3356b94fe1 CSS spacing refactor – using protocol more heavily
* spacing cleanup and fixes
2020-03-04 11:28:14 +02:00
Tasos Katsoulas 940f76c91b Remove LESS bundles.
* Remove stylesheet from base template.
2020-02-25 15:40:45 +02:00
Tasos Katsoulas 0f55fb5276
Revert "Remove CSS from django-pipeline." 2020-02-07 17:59:11 +02:00
Tasos Katsoulas 732ab3ae9f Remove CSS from django-pipeline. 2020-02-06 15:44:13 +02:00
Tasos Katsoulas f7fee99a4e Move protocol under js_assets. 2020-02-05 17:10:40 +02:00