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

refactor(docs): remove example-styles project #1472

Merged
merged 32 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7c26299
chore: remove shamefully-hoist
danielleroux Sep 13, 2024
fe4445e
fix: test-apps
danielleroux Sep 13, 2024
2271dbe
fix: vue-test-app
danielleroux Sep 13, 2024
73b497e
fix: angular-test-app
danielleroux Sep 13, 2024
043f931
fix: ionic-test-app
danielleroux Sep 13, 2024
83139d1
fix: docusaurus
danielleroux Sep 13, 2024
46789a0
ci: download and execute direclty with out internal dependency
danielleroux Sep 13, 2024
e10166d
Revert "ci: download and execute direclty with out internal dependency"
danielleroux Sep 13, 2024
1fc8c2e
ci: install global
danielleroux Sep 13, 2024
e69ec32
fix: public hoist playwright
danielleroux Sep 13, 2024
47f5525
refactor: remove example-styles project
danielleroux Sep 13, 2024
fd5d2dd
fix: create example style for component
danielleroux Sep 13, 2024
b960572
fix: place css file parallel to component files
danielleroux Sep 13, 2024
52e914e
refactor: react example styles
danielleroux Sep 13, 2024
7378309
fix: add css example styles
danielleroux Sep 13, 2024
e1f1c32
fix: add auto gen disclaimer
danielleroux Sep 13, 2024
00ed3fe
fix: generate
danielleroux Sep 13, 2024
bf0e4c1
fix: angular css files
danielleroux Sep 13, 2024
ba84f3c
fix: angular-test-app css
danielleroux Sep 13, 2024
a9eab4f
fix: vue test app
danielleroux Sep 13, 2024
25a22d9
docs: remove regex
danielleroux Sep 13, 2024
72458df
docs: adapt tsconfig
danielleroux Sep 13, 2024
584ed93
refactor: remove examples-styles
danielleroux Sep 13, 2024
4e273c1
fix: remove copy css styles
danielleroux Sep 13, 2024
f26a44f
Merge remote-tracking branch 'origin/main' into refactor/remove-exampโ€ฆ
danielleroux Sep 18, 2024
a112b27
chore: compodoc update
danielleroux Sep 18, 2024
7ac06af
refactor: unused assignment
danielleroux Sep 18, 2024
37a121a
Merge remote-tracking branch 'origin/main' into refactor/remove-exampโ€ฆ
danielleroux Sep 23, 2024
e041d57
fix: adapt preview example and global css path
matthiashader Sep 24, 2024
8427dff
fix: adapt css for react preview examples
matthiashader Sep 24, 2024
a02617e
Revert "fix: adapt css for react preview examples"
danielleroux Sep 24, 2024
32a7fcc
fix: use inline styles
danielleroux Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions ix.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@
"name": "eslint-config",
"path": "./packages/eslint-config-ix"
},
{
"name": "example-styles",
"path": "./packages/example-styles"
},
{
"name": "figma-plugin",
"path": "./packages/figma-plugin"
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"ag-grid-community": "^30.2.0",
"echarts": "^5.5.1",
"echarts-gl": "^2.0.9",
"example-styles": "workspace:*",
"html-test-app": "workspace:*",
"ngx-echarts": "~14.0.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
Expand Down
31 changes: 27 additions & 4 deletions packages/angular-test-app/scripts/copy-preview.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,33 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { copyPreviewStyles } from 'example-styles';
import path from 'path';

import fs from 'fs';
import fsp from 'fs/promises';
const __dirname = path.resolve();

const stylesPath = path.resolve(__dirname, 'src', 'preview-examples', 'styles');
copyPreviewStyles(stylesPath);
const previewPath = path.join(
__dirname,
'node_modules',
'html-test-app',
'src',
'preview-examples'
);

(async () => {
console.log('Copying preview styles to html-test-app...');
const cssFiles = fs
.readdirSync(previewPath)
.filter((f) => f.endsWith('.css'));

await Promise.all(
cssFiles.map((cssFile) =>
fsp.copyFile(
path.join(previewPath, cssFile),
path.join(__dirname, 'src', 'preview-examples', cssFile)
)
)
);

console.log('Done');
})();
17 changes: 17 additions & 0 deletions packages/angular-test-app/src/preview-examples/about-and-legal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

ix-application {
width: 100vw;
height: 100vh;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core';
@Component({
selector: 'app-example',
templateUrl: './about-and-legal.html',
styleUrls: ['./styles/application.css'],
styleUrls: ['./about-and-legal.css'],
})
export default class AboutAndLegal implements AfterViewInit {
@ViewChild('menu', { read: ElementRef })
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

ix-application {
width: 100vw;
height: 100vh;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { AppSwitchConfiguration } from '@siemens/ix';
@Component({
selector: 'app-example',
templateUrl: './application-app-switch.html',
styleUrls: ['./styles/application.css'],
styleUrls: ['./application-app-switch.css'],
})
export default class ApplicationAppSwitchExample {
appSwitchConfig: AppSwitchConfiguration = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

ix-application {
width: 100vw;
height: 100vh;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Breakpoint } from '@siemens/ix';

@Component({
selector: 'app-example',
styleUrls: ['./styles/application.css'],
styleUrls: ['./application-breakpoints.css'],
templateUrl: './application-breakpoints.html',
})
export default class ApplicationBreakpointExample {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

ix-application {
width: 100vw;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-example',
templateUrl: './application.html',
styleUrls: ['./styles/application.css'],
styleUrls: ['./application.css'],
})
export default class ApplicationExample {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

ix-basic-navigation {
width: 100vw;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ import { Component } from '@angular/core';
</ix-menu>
</ix-basic-navigation>
`,
styleUrls: ['./styles/basic-navigation.css'],
styleUrls: ['./basic-navigation.css'],
})
export default class BasicNavigation {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

ix-blind {
margin: 0.5rem 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ import { Component } from '@angular/core';
sit amet.
</ix-blind>
`,
styleUrls: ['./styles/blind.css'],
styleUrls: ['./blind-header-actions.css'],
})
export default class Blind {}
16 changes: 16 additions & 0 deletions packages/angular-test-app/src/preview-examples/blind-variants.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

ix-blind {
margin: 0.5rem 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-example',
templateUrl: './blind-variants.html',
styleUrls: ['./styles/blind.css'],
styleUrls: ['./blind-variants.css'],
})
export default class Blind {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

ix-blind {
margin: 0.5rem 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-test-app/src/preview-examples/blind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-example',
templateUrl: './blind.html',
styleUrls: ['./styles/blind.css'],
styleUrls: ['./blind.css'],
})
export default class Blind {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

body {
display: flex;
}

ix-button {
margin: 0.25rem;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

body {
display: flex;
}

ix-button {
margin: 0.25rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-example',
templateUrl: './button-danger-outline.html',
styleUrls: ['./styles/buttons.css'],
styleUrls: ['./button-danger-outline.css'],
})
export default class Buttons {}
20 changes: 20 additions & 0 deletions packages/angular-test-app/src/preview-examples/button-danger.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

body {
display: flex;
}

ix-button {
margin: 0.25rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-example',
templateUrl: './button-danger.html',
styleUrls: ['./styles/buttons.css'],
styleUrls: ['./button-danger.css'],
})
export default class Buttons {}
20 changes: 20 additions & 0 deletions packages/angular-test-app/src/preview-examples/button-ghost.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

body {
display: flex;
}

ix-button {
margin: 0.25rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ import { Component } from '@angular/core';
<ix-button ghost> Button </ix-button>
<ix-button disabled ghost> Button </ix-button>
`,
styleUrls: ['./styles/buttons.css'],
styleUrls: ['./button-ghost.css'],
})
export default class Buttons {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

body {
display: flex;
}

ix-button {
margin: 0.25rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-example',
template: buttonGreyGhost(),
styleUrls: ['./styles/buttons.css'],
styleUrls: ['./button-grey-ghost.css'],
})
export default class Buttons {}

Expand Down
Loading
Loading