mirror of https://github.com/Squidex/squidex.git
Browse Source
* Update angular. * Update Dockerfile * Update Dockerfile * Update Dockerfile * Another build test * Update deps * Update deps. * Update * Add a user * Try root. * Install cli manually. * Fix files * More updates. * Fix formatting.pull/961/head
committed by
GitHub
29 changed files with 3547 additions and 2966 deletions
@ -0,0 +1,18 @@ |
|||
FROM node:18.10-slim |
|||
|
|||
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others) |
|||
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer |
|||
# installs, work. |
|||
RUN apt-get update \ |
|||
&& apt-get install -y wget gnupg \ |
|||
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ |
|||
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ |
|||
&& apt-get update \ |
|||
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends \ |
|||
&& rm -rf /var/lib/apt/lists/* |
|||
|
|||
WORKDIR /puppeteer |
|||
|
|||
# Install puppeteer so it's available in the container. |
|||
RUN npm init -y \ |
|||
&& npm install puppeteer |
|||
@ -1,16 +0,0 @@ |
|||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. |
|||
# For additional information regarding the format and rule options, please see: |
|||
# https://github.com/browserslist/browserslist#queries |
|||
|
|||
# For the full list of supported browsers by the Angular framework, please see: |
|||
# https://angular.io/guide/browser-support |
|||
|
|||
# You can see what browsers were selected by your queries by running: |
|||
# npx browserslist |
|||
|
|||
last 1 Chrome version |
|||
last 1 Firefox version |
|||
last 2 Edge major versions |
|||
last 2 Safari major versions |
|||
last 2 iOS major versions |
|||
Firefox ESR |
|||
File diff suppressed because it is too large
@ -1,19 +0,0 @@ |
|||
diff --git a/node_modules/resize-observer-polyfill/src/index.d.ts b/node_modules/resize-observer-polyfill/src/index.d.ts
|
|||
index 74aacc0..1b236d2 100644
|
|||
--- a/node_modules/resize-observer-polyfill/src/index.d.ts
|
|||
+++ b/node_modules/resize-observer-polyfill/src/index.d.ts
|
|||
@@ -1,14 +1,3 @@
|
|||
-interface DOMRectReadOnly {
|
|||
- readonly x: number;
|
|||
- readonly y: number;
|
|||
- readonly width: number;
|
|||
- readonly height: number;
|
|||
- readonly top: number;
|
|||
- readonly right: number;
|
|||
- readonly bottom: number;
|
|||
- readonly left: number;
|
|||
-}
|
|||
-
|
|||
declare global { |
|||
interface ResizeObserverCallback { |
|||
(entries: ResizeObserverEntry[], observer: ResizeObserver): void |
|||
@ -1,6 +1,6 @@ |
|||
<div class="card card-lg"> |
|||
<div class="card card-lg card-chart"> |
|||
<div class="card-header">{{ 'dashboard.assetUploadsCard' | sqxTranslate }}</div> |
|||
<div class="card-body"> |
|||
<chart type="line" [data]="chartData" [options]="chartOptions"></chart> |
|||
<canvas baseChart type="line" [data]="chartData" [options]="chartOptions"></canvas> |
|||
</div> |
|||
</div> |
|||
@ -1,6 +1,6 @@ |
|||
<div class="card card-lg"> |
|||
<div class="card card-lg card-chart"> |
|||
<div class="card-header">{{ 'dashboard.assetUploadsCard' | sqxTranslate }}</div> |
|||
<div class="card-body"> |
|||
<chart type="line" [data]="chartData" [options]="chartOptions"></chart> |
|||
<canvas baseChart type="line" [data]="chartData" [options]="chartOptions"></canvas> |
|||
</div> |
|||
</div> |
|||
@ -1,56 +0,0 @@ |
|||
/** |
|||
* This file includes polyfills needed by Angular and is loaded before the app. |
|||
* You can add your own extra polyfills to this file. |
|||
* |
|||
* This file is divided into 2 sections: |
|||
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. |
|||
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main |
|||
* file. |
|||
* |
|||
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that |
|||
* automatically update themselves. This includes recent versions of Safari, Chrome (including |
|||
* Opera), Edge on the desktop, and iOS and Chrome on mobile. |
|||
* |
|||
* Learn more in https://angular.io/guide/browser-support
|
|||
*/ |
|||
|
|||
/*************************************************************************************************** |
|||
* BROWSER POLYFILLS |
|||
*/ |
|||
// Global for graphiql.
|
|||
(window as any).global = window; |
|||
|
|||
/** |
|||
* By default, zone.js will patch all possible macroTask and DomEvents |
|||
* user can disable parts of macroTask/DomEvents patch by setting following flags |
|||
* because those flags need to be set before `zone.js` being loaded, and webpack |
|||
* will put import in the top of bundle, so user need to create a separate file |
|||
* in this directory (for example: zone-flags.ts), and put the following flags |
|||
* into that file, and then add the following code before importing zone.js. |
|||
* import './zone-flags'; |
|||
* |
|||
* The flags allowed in zone-flags.ts are listed here. |
|||
* |
|||
* The following flags will work for all browsers. |
|||
* |
|||
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|||
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|||
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|||
* |
|||
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js |
|||
* with the following flag, it will bypass `zone.js` patch for IE/Edge |
|||
* |
|||
* (window as any).__Zone_enable_cross_context_check = true; |
|||
* |
|||
*/ |
|||
|
|||
/*************************************************************************************************** |
|||
* Zone JS is required by default for Angular itself. |
|||
*/ |
|||
import 'zone.js'; // Included with Angular CLI.
|
|||
|
|||
|
|||
/*************************************************************************************************** |
|||
* APPLICATION IMPORTS |
|||
*/ |
|||
|
|||
@ -1,26 +0,0 @@ |
|||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|||
|
|||
import 'zone.js/testing'; |
|||
import { getTestBed } from '@angular/core/testing'; |
|||
import { |
|||
BrowserDynamicTestingModule, |
|||
platformBrowserDynamicTesting |
|||
} from '@angular/platform-browser-dynamic/testing'; |
|||
|
|||
declare const require: { |
|||
context(path: string, deep?: boolean, filter?: RegExp): { |
|||
<T>(id: string): T; |
|||
keys(): string[]; |
|||
}; |
|||
}; |
|||
|
|||
// First, initialize the Angular testing environment.
|
|||
getTestBed().initTestEnvironment( |
|||
BrowserDynamicTestingModule, |
|||
platformBrowserDynamicTesting(), |
|||
); |
|||
|
|||
// Then we find all the tests.
|
|||
const context = require.context('./', true, /\.spec\.ts$/); |
|||
// And load the modules.
|
|||
context.keys().map(context); |
|||
Loading…
Reference in new issue