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 {resolve} from "path";
import {h32} from "xxhashjs";
import {getColoredSvgString} from "./svg-colorizer.mjs";
import {getColoredSvgString} from "../../src/platform/web/theming/actions/svg-colorizer.mjs";
function createHash(content) {
const hasher = new h32(0);

View File

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

View File

@ -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
limitations under the License.
*/
import {derive} from "../../../scripts/postcss/color.mjs";
import {derive} from "./actions/color.mjs";
export class DerivedVariables {
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
limitations under the License.
*/
import type {Platform} from "./Platform.js";
import {getColoredSvgString} from "../../../scripts/postcss/svg-colorizer.mjs";
import type {Platform} from "../Platform.js";
import {getColoredSvgString} from "./actions/svg-colorizer.mjs";
type ParsedStructure = {
[variableName: string]: {

View File

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

View File

@ -9,7 +9,7 @@ const manifest = require("./package.json");
const version = manifest.version;
const compiledVariables = new Map();
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 = {
logLevel: "warn",