Skip to content

Commit

Permalink
feat (labs): 2023-1 starting
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Mar 10, 2023
1 parent ea7815a commit cc0eeb2
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 12 deletions.
33 changes: 33 additions & 0 deletions labs/2023-1/02-model/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Exploring Components

## Frameworks
* [Lit](https://lit.dev/)
* [Hybrids](https://hybrids.js.org)
* [Slim](https://slimjs.com)
* [Stencil](https://stenciljs.com/)
* [Bit](https://bit.dev/)
* [Lightning](https://developer.salesforce.com/docs/component-library/documentation/en/lwc)
* [React Components](https://reactjs.org/docs/react-component.html)
* [AngularJS Components](https://reactjs.org/docs/react-component.html)

## Guidelines and Catalogs
* [Open Web Components](https://open-wc.org/)
* [Material](https://m3.material.io/)

## Catalogs
* [Material Components](https://m3.material.io/components)
* [Lightning](https://developer.salesforce.com/docs/component-library/overview/components)
* [webcomponents.org](https://www.webcomponents.org/)
* [MUI](https://mui.com/material-ui/getting-started/overview/)

## Workflows
* [Orange Widget](https://orange-widget-base.readthedocs.io/en/latest/)

## Representations
* [MDX](https://mdxjs.com/)
* [Figma Material](https://material.io/blog/material-3-figma-design-kit)

## Specializations
* Graphic Components
* Data Processing Components
* ML Components
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta charset="UTF-8">

<script src="../js/test.js" type="module"></script>
<title>Oid component sample</title>
</head>
<body>
Expand Down Expand Up @@ -35,5 +34,6 @@ <h1>component-oid-3-private</h1>
<h1>component-lit</h1>
<component-lit name="Asdrubal"></component-lit>
</div>
<script src="../js/test.js" type="module"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta charset="UTF-8">
<script type="importmap"> { "imports": {"lit": "https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js"} } </script>
<script src="../js/test.js" type="module"></script>
<title>Oid component sample</title>
</head>
<body>
Expand Down Expand Up @@ -35,5 +34,6 @@ <h1>component-oid-3-private</h1>
<h1>component-lit</h1>
<component-lit name="Asdrubal"></component-lit>
</div>
<script src="../js/test.js" type="module"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion web/lab/dist/index.html → web/comparison/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta charset="UTF-8">

<script src="test-pack.js" type="module"></script>
<title>Oid component sample</title>
</head>
<body>
Expand Down Expand Up @@ -35,5 +34,6 @@ <h1>component-oid-3-private</h1>
<h1>component-lit</h1>
<component-lit name="Asdrubal"></component-lit>
</div>
<script src="test-pack.js"></script>
</body>
</html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {LitElement, css, html} from 'lit';

export class ComponentLit extends LitElement {
static properties = {
name: {},
name: {}
};
// Define scoped styles right with your component, in plain CSS
static styles = css`
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class ComponentOid2 extends HTMLElement {
static oid = {
static spec = {
properties: ['name']
}

Expand All @@ -8,7 +8,7 @@ export class ComponentOid2 extends HTMLElement {
}

static get observedAttributes() {
return this.oid.properties
return this.spec.properties
}

attributeChangedCallback(name, oldValue, newValue) {
Expand All @@ -20,7 +20,7 @@ export class ComponentOid2 extends HTMLElement {
}
}

ComponentOid2.oid.properties.forEach((property) => {
ComponentOid2.spec.properties.forEach((property) => {
Object.defineProperty(ComponentOid2.prototype, property, {
get: function() {return this['_' + property]},
set: function(newValue) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta charset="UTF-8">
<%= htmlWebpackPlugin.options.map%>
<script src="<%= htmlWebpackPlugin.options.lib%>" type="module"></script>
<title>Oid component sample</title>
</head>
<body>
Expand Down Expand Up @@ -35,5 +34,6 @@ <h1>component-oid-3-private</h1>
<h1>component-lit</h1>
<component-lit name="Asdrubal"></component-lit>
</div>
<%= htmlWebpackPlugin.options.lib%>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ module.exports = {
inject: false,
filename: 'index.html',
template: './template/index.html',
lib: 'test-pack.js',
lib: '<script src="test-pack.js"></script>',
map: ''
}),
new HtmlWebpackPlugin({
inject: false,
filename: 'index-map.html',
template: './template/index.html',
lib: '../js/test.js',
lib: '<script src="../js/test.js" type="module"></script>',
map: '<script type="importmap"> { "imports": {"lit": "https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js"} } </script>'
}),
new HtmlWebpackPlugin({
inject: false,
filename: 'index-dev.html',
template: './template/index.html',
lib: '../js/test.js',
lib: '<script src="../js/test.js" type="module"></script>',
map: ''
})
]
Expand Down

0 comments on commit cc0eeb2

Please sign in to comment.