Merge commit 'c4f47adb49663f24ee80d9174ab24431a8c165c0' into glitch-soc/merge-upstream
Too many conflicts to list, because of webpack → vite migration.
This commit is contained in:
commit
f49940db85
159 files changed
+2373
-7784
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import '@/entrypoints/public-path';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
import Rails from '@rails/ujs';
|
||||
@@ -273,7 +272,7 @@ async function mountReactComponent(element: Element) {
|
||||
);
|
||||
|
||||
const { default: Component } = (await import(
|
||||
`@/flavours/glitch/components/admin/${componentName}`
|
||||
`@/flavours/glitch/components/admin/${componentName}.jsx`
|
||||
)) as { default: React.ComponentType };
|
||||
|
||||
const root = createRoot(element);
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
import '@/entrypoints/public-path';
|
||||
|
||||
import { start } from 'flavours/glitch/common';
|
||||
import { loadLocale } from 'flavours/glitch/locales';
|
||||
import main from 'flavours/glitch/main';
|
||||
import { loadPolyfills } from 'flavours/glitch/polyfills';
|
||||
|
||||
start();
|
||||
|
||||
loadPolyfills()
|
||||
.then(loadLocale)
|
||||
.then(main)
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
/* This file is a hack to have something more reliable than the upstream `common` tag
|
||||
that is implicitly generated as the common chunk through webpack's `splitChunks` config */
|
||||
|
||||
import '@/entrypoints/public-path';
|
||||
|
||||
// This is a hack to ensures that webpack compiles our images.
|
||||
require.context('../images', true);
|
||||
@@ -0,0 +1,3 @@
|
||||
import { start } from 'flavours/glitch/common';
|
||||
|
||||
start();
|
||||
@@ -1,15 +1,10 @@
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
import '@/entrypoints/public-path';
|
||||
|
||||
import { start } from 'flavours/glitch/common';
|
||||
import { Status } from 'flavours/glitch/features/standalone/status';
|
||||
import { afterInitialRender } from 'flavours/glitch/hooks/useRenderSignal';
|
||||
import { loadPolyfills } from 'flavours/glitch/polyfills';
|
||||
import ready from 'flavours/glitch/ready';
|
||||
|
||||
start();
|
||||
|
||||
function loaded() {
|
||||
const mountNode = document.getElementById('mastodon-status');
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '@/entrypoints/public-path';
|
||||
import ready from 'flavours/glitch/ready';
|
||||
|
||||
ready(() => {
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
/* Placeholder file to have `inert.scss` compiled by Webpack
|
||||
This is used by the `wicg-inert` polyfill */
|
||||
|
||||
import '@/styles/inert.scss';
|
||||
@@ -1,3 +0,0 @@
|
||||
import '@/styles/mailer.scss';
|
||||
|
||||
require.context('@/icons');
|
||||
@@ -1,7 +1,5 @@
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
import '@/entrypoints/public-path';
|
||||
|
||||
import { IntlMessageFormat } from 'intl-messageformat';
|
||||
import type { MessageDescriptor, PrimitiveType } from 'react-intl';
|
||||
import { defineMessages } from 'react-intl';
|
||||
@@ -10,7 +8,6 @@ import Rails from '@rails/ujs';
|
||||
import axios from 'axios';
|
||||
import { throttle } from 'lodash';
|
||||
|
||||
import { start } from 'flavours/glitch/common';
|
||||
import { timeAgoString } from 'flavours/glitch/components/relative_timestamp';
|
||||
import emojify from 'flavours/glitch/features/emoji/emoji';
|
||||
import loadKeyboardExtensions from 'flavours/glitch/load_keyboard_extensions';
|
||||
@@ -20,8 +17,6 @@ import ready from 'flavours/glitch/ready';
|
||||
|
||||
import 'cocoon-js-vanilla';
|
||||
|
||||
start();
|
||||
|
||||
const messages = defineMessages({
|
||||
usernameTaken: {
|
||||
id: 'username.taken',
|
||||
@@ -153,9 +148,7 @@ function loaded() {
|
||||
const reactComponents = document.querySelectorAll('[data-component]');
|
||||
|
||||
if (reactComponents.length > 0) {
|
||||
import(
|
||||
/* webpackChunkName: "containers/media_container" */ 'flavours/glitch/containers/media_container'
|
||||
)
|
||||
import('flavours/glitch/containers/media_container')
|
||||
.then(({ default: MediaContainer }) => {
|
||||
reactComponents.forEach((component) => {
|
||||
Array.from(component.children).forEach((child) => {
|
||||
|
||||
@@ -8,8 +8,6 @@ and performs no other task.
|
||||
|
||||
*/
|
||||
|
||||
import '@/entrypoints/public-path';
|
||||
|
||||
import axios from 'axios';
|
||||
|
||||
interface JRDLink {
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
import '@/entrypoints/public-path';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
import { start } from 'flavours/glitch/common';
|
||||
import ComposeContainer from 'flavours/glitch/containers/compose_container';
|
||||
import { loadPolyfills } from 'flavours/glitch/polyfills';
|
||||
import ready from 'flavours/glitch/ready';
|
||||
|
||||
start();
|
||||
|
||||
function loaded() {
|
||||
const mountNode = document.getElementById('mastodon-compose');
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import '@/entrypoints/public-path';
|
||||
import axios from 'axios';
|
||||
|
||||
import ready from 'flavours/glitch/ready';
|
||||
|
||||
Reference in new issue
Block a user