Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 04e2279

Browse files
authored
Merge pull request #48 from GrabarzUndPartner/feature/update
Feature/update
2 parents d008191 + 574ed4b commit 04e2279

File tree

22 files changed

+29064
-18833
lines changed

22 files changed

+29064
-18833
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
with:
2828
path: |
2929
node_modules
30+
~/.cache/ms-playwright/
31+
~\AppData\Local\ms-playwright\
3032
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
3133
- name: Install Dependencies
3234
if: steps.cache.outputs.cache-hit != 'true'
@@ -78,6 +80,8 @@ jobs:
7880
with:
7981
path: |
8082
node_modules
83+
~/.cache/ms-playwright/
84+
~\AppData\Local\ms-playwright\
8185
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
8286
- name: Build
8387
run: |

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
with:
2828
path: |
2929
node_modules
30+
~/.cache/ms-playwright/
31+
~\AppData\Local\ms-playwright\
3032
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
3133

3234
- name: Install Dependencies

package-lock.json

Lines changed: 28747 additions & 18423 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/Article/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<template>
2-
<article class="article" v-bind="$attrs" v-on="$listeners">
2+
<content-container class="article" v-bind="$attrs" v-on="$listeners">
33
<header v-if="$slots.header">
44
<slot name="header" />
55
</header>
66
<slot name="default" />
7-
</article>
7+
</content-container>
88
</template>
99

1010
<script>
11+
import ContentContainer from '../ContentContainer';
1112
export default {
13+
components: { ContentContainer },
1214
inheritAttrs: false
1315
};
1416
</script>

packages/core/ContentContainer/index.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,11 @@ export default {
5151
},
5252
data () {
5353
return {
54-
headline: false
54+
debug: false
5555
};
5656
},
57+
5758
computed: {
58-
debug () {
59-
return 'debug-structure' in this.$route.query;
60-
},
6159
6260
currentLevel () {
6361
return this.parentLevel + 1;
@@ -66,6 +64,10 @@ export default {
6664
currentTag () {
6765
return ['div', 'main', 'div'][this.parentLevel] || this.tags[this.currentLevel % this.tags.length];
6866
}
67+
},
68+
69+
mounted () {
70+
this.debug = 'debug-structure' in this.$route.query;
6971
}
7072
7173
};

packages/core/Headline/index.vue

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,18 @@ export default {
3333
}
3434
},
3535
36+
data () {
37+
return { debug: false };
38+
},
39+
3640
computed: {
37-
debug () {
38-
return 'debug-headline' in this.$route.query;
39-
},
4041
contextLevel () {
4142
return getMax((this.parentLevel - (this.parentLevel % 2)) / 2);
4243
}
4344
},
4445
45-
created () {
46-
const getContentContainer = (component) => {
47-
if (component.tags) {
48-
return component;
49-
}
50-
return (component && getContentContainer(component.$parent)) || null;
51-
};
52-
53-
const contentContainer = getContentContainer(this);
54-
contentContainer && (contentContainer.headline = true);
46+
mounted () {
47+
this.debug = 'debug-headline' in this.$route.query;
5548
}
5649
5750
};
@@ -74,6 +67,8 @@ function getMax (number) {
7467
left: 0;
7568
z-index: 10000;
7669
margin: 0;
70+
font-family: monospace;
71+
font-weight: normal;
7772
7873
&::before {
7974
position: absolute;
@@ -89,12 +84,13 @@ function getMax (number) {
8984
9085
&::after {
9186
position: absolute;
92-
top: 0;
9387
right: 0;
88+
bottom: 0;
9489
z-index: 10000;
95-
padding: 10px 5px;
96-
font-size: 12px;
90+
padding: 5px;
91+
font-size: 13px;
9792
color: white;
93+
letter-spacing: 0.1em;
9894
content: "H" attr(data-debug-context-level);
9995
background: #333;
10096
}

packages/sample/src/components/molecules/Teaser.vue renamed to packages/sample/src/components/molecules/Tile.vue

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<template>
2-
<base-teaser class="molecule-teaser" v-bind="$attrs" v-on="$listeners">
3-
<template #default>
4-
<speedkit-picture v-bind="image" />
5-
<span v-font="$getFont('Poppins', 500)">{{ caption }}</span>
6-
</template>
7-
</base-teaser>
2+
<figure class="molecule-tile" v-bind="$attrs" v-on="$listeners">
3+
<speedkit-picture v-bind="image" />
4+
<figcaption v-font="$getFont('Poppins', 500)">
5+
{{ caption }}
6+
</figcaption>
7+
</figure>
88
</template>
99

1010
<script>
11+
1112
import SpeedkitPicture from 'nuxt-speedkit/components/SpeedkitPicture';
12-
import BaseTeaser from '@foundation/core/Article/Teaser';
13+
1314
export default {
1415
components: {
15-
SpeedkitPicture, BaseTeaser
16+
SpeedkitPicture
1617
},
1718
inheritAttrs: false,
1819
props: {
@@ -22,17 +23,19 @@ export default {
2223
},
2324
caption: {
2425
type: String,
25-
default: 'Teaser Caption'
26+
default: 'Tile Caption'
2627
}
2728
}
2829
};
30+
2931
</script>
3032

3133
<style lang="postcss" scoped>
32-
.molecule-teaser {
34+
.molecule-tile {
35+
margin: 0;
3336
text-decoration: none;
3437
35-
& span {
38+
& figcaption {
3639
display: block;
3740
margin: em(10, 16);
3841
font-size: em(16);

packages/sample/src/components/organisms/Accordeon.vue

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<template>
22
<core-structure class="organism-accordeon">
33
<template v-if="headline" #header>
4-
<layout-lost-container>
4+
<layout-lost-container v-show="!hideHeadline">
55
<div class="headline">
66
<atom-headline v-bind="headline" />
77
</div>
88
</layout-lost-container>
99
</template>
1010
<template #default>
11-
<layout-lost-container>
12-
<molecule-accordeon class="content" :items="items" />
13-
</layout-lost-container>
11+
<core-structure>
12+
<layout-lost-container>
13+
<molecule-accordeon class="content" :items="items" />
14+
</layout-lost-container>
15+
</core-structure>
1416
</template>
1517
</core-structure>
1618
</template>
@@ -29,13 +31,21 @@ export default {
2931
LayoutLostContainer,
3032
CoreStructure
3133
},
34+
3235
props: {
36+
3337
headline: {
3438
type: Object,
3539
default () {
3640
return null;
3741
}
3842
},
43+
44+
hideHeadline: {
45+
type: Boolean,
46+
default: false
47+
},
48+
3949
items: {
4050
type: Array,
4151
required: true,
@@ -57,6 +67,7 @@ export default {
5767
}
5868
}
5969
}
70+
6071
};
6172
</script>
6273

packages/sample/src/components/organisms/Gallery.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<core-structure class="organism-gallery" v-bind="$attrs" v-on="$listeners">
3-
<template #header>
4-
<layout-lost-container>
3+
<template v-if="headline" #header>
4+
<layout-lost-container v-show="!hideHeadline">
55
<atom-headline class="headline" v-bind="headline" />
66
</layout-lost-container>
77
</template>
@@ -22,14 +22,22 @@ import LayoutLostContainer from '@/components/layouts/LostContainer';
2222
export default {
2323
components: { AtomHeadline, MoleculeSlider, LayoutLostContainer, CoreStructure },
2424
inheritAttrs: false,
25+
2526
props: {
27+
2628
headline: {
2729
type: Object,
2830
required: true,
2931
default () {
3032
return null;
3133
}
34+
},
35+
36+
hideHeadline: {
37+
type: Boolean,
38+
default: false
3239
}
40+
3341
}
3442
};
3543
</script>

packages/sample/src/components/organisms/Infos.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<core-structure class="organism-infos">
3-
<template #header>
4-
<layout-lost-container>
3+
<template v-if="headline" #header>
4+
<layout-lost-container v-show="!hideHeadline">
55
<atom-headline class="headline" v-bind="headline" />
66
</layout-lost-container>
77
</template>
@@ -51,6 +51,12 @@ export default {
5151
};
5252
}
5353
},
54+
55+
hideHeadline: {
56+
type: Boolean,
57+
default: false
58+
},
59+
5460
subHeadline: {
5561
type: Object,
5662
default () {

0 commit comments

Comments
 (0)