Move code

This commit is contained in:
RMidhunSuresh 2022-07-19 15:05:07 +05:30
parent 07db5450b7
commit 7a1591e0ce
9 changed files with 10 additions and 10 deletions

View File

@ -17,7 +17,7 @@ limitations under the License.
import {readFileSync, mkdirSync, writeFileSync} from "fs"; import {readFileSync, mkdirSync, writeFileSync} from "fs";
import {resolve} from "path"; import {resolve} from "path";
import {h32} from "xxhashjs"; import {h32} from "xxhashjs";
import {getColoredSvgString} from "./svg-colorizer.mjs"; import {getColoredSvgString} from "../../src/platform/web/theming/actions/svg-colorizer.mjs";
function createHash(content) { function createHash(content) {
const hasher = new h32(0); const hasher = new h32(0);

View File

@ -38,7 +38,7 @@ import {downloadInIframe} from "./dom/download.js";
import {Disposables} from "../../utils/Disposables"; import {Disposables} from "../../utils/Disposables";
import {parseHTML} from "./parsehtml.js"; import {parseHTML} from "./parsehtml.js";
import {handleAvatarError} from "./ui/avatar"; import {handleAvatarError} from "./ui/avatar";
import {ThemeLoader} from "./ThemeLoader"; import {ThemeLoader} from "./theming/ThemeLoader";
function addScript(src) { function addScript(src) {
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {

View File

@ -1,6 +1,6 @@
/* /*
Copyright 2020 The Matrix.org Foundation C.I.C. Copyright 2020 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
You may obtain a copy of the License at You may obtain a copy of the License at
@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {derive} from "../../../scripts/postcss/color.mjs"; import {derive} from "./actions/color.mjs";
export class DerivedVariables { export class DerivedVariables {
private _baseVariables: Record<string, string>; private _baseVariables: Record<string, string>;

View File

@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import type {Platform} from "./Platform.js"; import type {Platform} from "../Platform.js";
import {getColoredSvgString} from "../../../scripts/postcss/svg-colorizer.mjs"; import {getColoredSvgString} from "./actions/svg-colorizer.mjs";
type ParsedStructure = { type ParsedStructure = {
[variableName: string]: { [variableName: string]: {

View File

@ -14,12 +14,12 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import type {ThemeInformation} from "./ThemeLoader"; import type {ThemeInformation} from "./ThemeLoader";
import type {Platform} from "./Platform.js"; import type {Platform} from "../Platform.js";
import type {ThemeManifest} from "../types/theme"; import type {ThemeManifest} from "../../types/theme";
import {ColorSchemePreference} from "./ThemeLoader"; import {ColorSchemePreference} from "./ThemeLoader";
import {IconColorizer} from "./IconColorizer"; import {IconColorizer} from "./IconColorizer";
import {DerivedVariables} from "./DerivedVariables"; import {DerivedVariables} from "./DerivedVariables";
import {ILogItem} from "../../logging/types"; import {ILogItem} from "../../../logging/types";
export class ThemeBuilder { export class ThemeBuilder {
private _themeMapping: Record<string, ThemeInformation> = {}; private _themeMapping: Record<string, ThemeInformation> = {};

View File

@ -9,7 +9,7 @@ const manifest = require("./package.json");
const version = manifest.version; const version = manifest.version;
const compiledVariables = new Map(); const compiledVariables = new Map();
import {buildColorizedSVG as replacer} from "./scripts/postcss/svg-builder.mjs"; import {buildColorizedSVG as replacer} from "./scripts/postcss/svg-builder.mjs";
import {derive} from "./scripts/postcss/color.mjs"; import {derive} from "./src/platform/web/theming/actions/color.mjs";
const commonOptions = { const commonOptions = {
logLevel: "warn", logLevel: "warn",