Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test CS config #178

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/avatar-sample-3/.codesandbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM node:18
17 changes: 17 additions & 0 deletions tests/avatar-sample-3/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "yarn install"
}
],
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"node node_modules/@angular/cli/bin/ng serve -o --disable-host-check": {
"name": "Start Project",
"command": "node node_modules/@angular/cli/bin/ng serve -o --disable-host-check",
"runAtStart": true
}
}
}
1 change: 1 addition & 0 deletions tests/avatar-sample-3/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"installDependencies":true, "startCommand":"npm start"}
110 changes: 110 additions & 0 deletions tests/avatar-sample-3/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"example-app": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
},
"@schematics/angular:application": {
"strict": true
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/example-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"stylePreprocessorOptions": {
"includePaths": ["node_modules/"]
},
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "example-app:build:production"
},
"development": {
"browserTarget": "example-app:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "example-app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
"stylePreprocessorOptions": {
"includePaths": ["node_modules/"]
},
"styles": ["src/styles.scss", "src/theme.scss"],
"scripts": []
}
}
}
}
},
"defaultProject": "example-app",
"cli": {
"analytics": false
}
}
28 changes: 28 additions & 0 deletions tests/avatar-sample-3/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"dependencies": {
"@angular/animations": "^17.2.1",
"@angular/common": "^17.2.1",
"@angular/compiler": "^17.2.1",
"@angular/core": "^17.2.1",
"@angular/forms": "^17.2.1",
"@angular/platform-browser": "^17.2.1",
"@angular/platform-browser-dynamic": "^17.2.1",
"@angular/router": "^17.2.1",
"@types/hammerjs": "^2.0.39",
"hammerjs": "^2.0.8",
"igniteui-angular": "17.2.0",
"rxjs": "^7.8.1",
"tslib": "^2.6.1",
"zone.js": "~0.14.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "17.2.0",
"@angular/cli": "17.2.0",
"@angular/compiler-cli": "17.2.1",
"@angular/language-service": "17.2.1",
"@types/node": "18.17.0",
"jasmine-core": "5.1.1",
"ts-node": "10.9.1",
"typescript": "5.3.3"
}
}
84 changes: 84 additions & 0 deletions tests/avatar-sample-3/src/_app-layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
.sample-wrapper {
width: inherit;
position: relative;
height: 100%;
margin: 0 auto;
background: transparent;
}

.sample-content {
display: flex;
flex-grow: 1;
flex-flow: row wrap;
justify-content: flex-start;
padding: 0;
-webkit-animation: fade-in .3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
-moz-animation: fade-in .3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
animation: fade-in .3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.sample-column {
display: flex;
flex-flow: column nowrap;
flex: 1 0 25%;
align-content: flex-start;
margin: 16px;
min-width: 280px;
}

.sample-title {
color: #0375be;
margin-bottom: 12px;
margin-top: 12px;
}

.sample-title .light {
font-weight: 400;
}

.sample-description {
font-size: 14px;
font-weight: normal;
color: #717171;
}

@-webkit-keyframes color-change-2x {
0% {
background: #fdf8f0;
}
100% {
background: #f6e7ec;
}
}

@keyframes color-change-2x {
0% {
background: #fdf8f0;
}
100% {
background: #f6e7ec;
}
}

@-webkit-keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

.headerAlignSyle {
text-align: right !important;
}

19 changes: 19 additions & 0 deletions tests/avatar-sample-3/src/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@use 'igniteui-angular/theming' as *;
@forward 'igniteui-angular/theming';

$palette: $light-material-palette;
$schema: $light-material-schema;

$default-palette: $palette;

$green-palette: palette(
$primary: #09f,
$secondary: #72da67,
$surface: #333,
$info: #1377d5,
$success: #4eb862,
$warn: #fbb13c,
$error: #ff134a,
);

$gray-btn-color: color($green-palette, 'gray', 800);
1 change: 1 addition & 0 deletions tests/avatar-sample-3/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<app-avatar-sample-3></app-avatar-sample-3>
Empty file.
8 changes: 8 additions & 0 deletions tests/avatar-sample-3/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Component } from "@angular/core";

@Component({
selector: "app-root",
styleUrls: ["./app.component.scss"],
templateUrl: "./app.component.html"
})
export class AppComponent {}
26 changes: 26 additions & 0 deletions tests/avatar-sample-3/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { BrowserModule } from "@angular/platform-browser";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { AppComponent } from "./app.component";
import { IgxAvatarModule } from "igniteui-angular";
import { AvatarSample3Component } from "./avatar-sample-3/avatar-sample-3.component";



@NgModule({
bootstrap: [AppComponent],
declarations: [
AppComponent,
AvatarSample3Component
],
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
IgxAvatarModule
],
providers: [],
schemas: []
})
export class AppModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<article class="avatars-wrapper">
<div class="avatar-sample initials">
<igx-avatar initials="JS" size="medium"></igx-avatar>
</div>
<div class="avatar-sample">
<igx-avatar src="https://staging.infragistics.com/angular-demos/assets/images/men/1.jpg" shape="rounded" size="medium"></igx-avatar>
</div>
<div class="avatar-sample icon">
<igx-avatar icon="person" shape="circle" size="medium"></igx-avatar>
</div>
</article>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.avatars-wrapper {
display: flex;
flex-flow: row wrap;
}

.avatar-sample {
display: flex;
flex: 1 0 30%;
width: 88px;
height: 88px;
justify-content: center;
align-items: center;
margin: 15px 0;
}

.avatar-sample.initials .igx-avatar{
background: #e41c77;
}

.avatar-sample.icon .igx-avatar{
background: #9e9e9e;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-avatar-sample-3',
styleUrls: ['./avatar-sample-3.component.scss'],
templateUrl: './avatar-sample-3.component.html'
})
export class AvatarSample3Component {

constructor() { }

}
3 changes: 3 additions & 0 deletions tests/avatar-sample-3/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const environment = {
production: true,
};
16 changes: 16 additions & 0 deletions tests/avatar-sample-3/src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

export const environment = {
production: false,
};

/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
Loading
Loading