MOBILE-3947 chore: Remove usage of raw loader
parent
4a5fa12e6d
commit
daecc555e2
|
@ -10,8 +10,5 @@ module.exports = {
|
||||||
'!src/testing/**/*',
|
'!src/testing/**/*',
|
||||||
],
|
],
|
||||||
transformIgnorePatterns: ['node_modules/(?!@stencil|@angular|@ionic|@moodlehq|@ngx-translate|swiper)'],
|
transformIgnorePatterns: ['node_modules/(?!@stencil|@angular|@ionic|@moodlehq|@ngx-translate|swiper)'],
|
||||||
moduleNameMapper: {
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/src/' }),
|
||||||
...pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/src/' }),
|
|
||||||
'^!raw-loader!.*': 'jest-raw-loader',
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -141,7 +141,6 @@
|
||||||
"gulp-slash": "^1.1.3",
|
"gulp-slash": "^1.1.3",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"jest-preset-angular": "^13.1.4",
|
"jest-preset-angular": "^13.1.4",
|
||||||
"jest-raw-loader": "^1.0.1",
|
|
||||||
"jsonc-parser": "^2.3.1",
|
"jsonc-parser": "^2.3.1",
|
||||||
"keytar": "^7.2.0",
|
"keytar": "^7.2.0",
|
||||||
"minimatch": "^5.1.0",
|
"minimatch": "^5.1.0",
|
||||||
|
@ -18822,12 +18821,6 @@
|
||||||
"integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==",
|
"integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/jest-raw-loader": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/jest-raw-loader/-/jest-raw-loader-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-g9oaAjeC4/rIJk1Wd3RxVbOfMizowM7LSjEJqa4R9qDX0OjQNABXOhH+GaznUp+DjTGVPi2vPPbQXyX87DOnYg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/jest-regex-util": {
|
"node_modules/jest-regex-util": {
|
||||||
"version": "29.6.3",
|
"version": "29.6.3",
|
||||||
"resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz",
|
||||||
|
|
|
@ -176,7 +176,6 @@
|
||||||
"gulp-slash": "^1.1.3",
|
"gulp-slash": "^1.1.3",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"jest-preset-angular": "^13.1.4",
|
"jest-preset-angular": "^13.1.4",
|
||||||
"jest-raw-loader": "^1.0.1",
|
|
||||||
"jsonc-parser": "^2.3.1",
|
"jsonc-parser": "^2.3.1",
|
||||||
"keytar": "^7.2.0",
|
"keytar": "^7.2.0",
|
||||||
"minimatch": "^5.1.0",
|
"minimatch": "^5.1.0",
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
import { Component, ElementRef, Input, OnChanges, OnInit } from '@angular/core';
|
import { Component, ElementRef, Input, OnChanges, OnInit } from '@angular/core';
|
||||||
import { Translate } from '@singletons';
|
import { Translate } from '@singletons';
|
||||||
import { CoreForms } from '@singletons/form';
|
import { CoreForms } from '@singletons/form';
|
||||||
import ChevronUpSVG from '!raw-loader!ionicons/dist/svg/chevron-up.svg';
|
|
||||||
import ChevronDownSVG from '!raw-loader!ionicons/dist/svg/chevron-down.svg';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Component to show error details.
|
* Component to show error details.
|
||||||
|
@ -54,11 +52,11 @@ export class CoreErrorInfoComponent implements OnInit, OnChanges {
|
||||||
<label for="${toggleId}" class="core-error-info--toggle" aria-hidden="true">
|
<label for="${toggleId}" class="core-error-info--toggle" aria-hidden="true">
|
||||||
<span class="core-error-info--hide-content">
|
<span class="core-error-info--hide-content">
|
||||||
${hideDetailsLabel}
|
${hideDetailsLabel}
|
||||||
${ChevronUpSVG}
|
<ion-icon name="chevron-up" />
|
||||||
</span>
|
</span>
|
||||||
<span class="core-error-info--show-content">
|
<span class="core-error-info--show-content">
|
||||||
${showDetailsLabel}
|
${showDetailsLabel}
|
||||||
${ChevronDownSVG}
|
<ion-icon name="chevron-down" />
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
// (C) Copyright 2015 Moodle Pty Ltd.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// 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.
|
|
||||||
|
|
||||||
declare module '!raw-loader!*' {
|
|
||||||
const contents: string;
|
|
||||||
|
|
||||||
export = contents;
|
|
||||||
}
|
|
Loading…
Reference in New Issue