Skip to content

Commit 3d817a8

Browse files
committed
Revert "Initial commit"
This reverts commit 2b38a9b.
1 parent 2b38a9b commit 3d817a8

21 files changed

+1312
-3449
lines changed

README.md

+2-21
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ This is a base template for creating Typescript WebComponents. It is based off o
1111

1212
### Things to update in your copy
1313
1. Remove this section
14-
2. Search for the strings `iaux-account-settings` and `IAUXAccountSettings` and those are most of the spots that need to be updated.
14+
2. Search for the strings `your-webcomponent` and `YourWebComponent` and those are most of the spots that need to be updated.
1515
3. `README.md` (this file). Update the readme in general, but also the badge URLs
1616
4. `package.json` Update the name and description
17-
5. Rename the `iaux-account-settings.ts` and its associated `.test` file
17+
5. Rename the `your-webcomponent.ts` and its associated `.test` file
1818

1919
## Local Demo with `web-dev-server`
2020
```bash
@@ -142,22 +142,3 @@ Things that trigger automatic site generation:
142142
Another thing to note: pushing a branch up alone will not trigger site creation.
143143

144144
Happy devving ^_^ 🥳 🎉
145-
146-
147-
Dev:
148-
149-
// this.fieldValidator = new IAUXFieldValidator({
150-
// email: this.email,
151-
// screenname: this.screenname,
152-
// password: this.password,
153-
// });
154-
155-
// const emailRes = await this.fieldValidator?.emailValidation();
156-
// if (emailRes?.status === false) {
157-
// this.emailError = emailRes.error;
158-
// }
159-
160-
// const screennameRes = await this.fieldValidator?.emailValidation();
161-
// if (screennameRes?.status === false) {
162-
// this.screennameError = screennameRes.error;
163-
// }

demo/app-root.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { html, css, LitElement } from 'lit';
2+
import { customElement } from 'lit/decorators.js';
3+
import '../src/your-webcomponent';
4+
5+
@customElement('app-root')
6+
export class AppRoot extends LitElement {
7+
render() {
8+
return html`
9+
<your-webcomponent title="Hello">
10+
<div slot="my-slot">Some slotted content</div>
11+
</your-webcomponent>
12+
`;
13+
}
14+
15+
static styles = css`
16+
:host {
17+
display: block;
18+
}
19+
`;
20+
}

demo/index.html

+2-33
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<html lang="en-GB">
33
<head>
44
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
75
<style>
86
html {
97
font-size: 10px; /* This is to match petabox's base font size */
@@ -12,41 +10,12 @@
1210
body {
1311
background: #fafafa;
1412
}
15-
16-
ia-account-settings {
17-
display: block;
18-
}
1913
</style>
2014
</head>
2115
<body>
22-
<div id="demo">
23-
</div>
24-
<script type="module">
25-
// import { html, render } from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm';
26-
// import { html, css, render } from '../node_modules/lit/index.js';
27-
import {html, render} from 'https://unpkg.com/lit-html?module';
28-
29-
30-
import '../dist/index.js';
31-
32-
render(
33-
html`<ia-account-settings
34-
.userData=${{
35-
screenname: 'neeraj-archive',
36-
37-
password: '*******',
38-
isAdmin: true,
39-
}}
40-
.newsletterData=${{
41-
ml_events: true,
42-
ml_donors: true
43-
}}
44-
.loanHistoryFlag=${'public'}
45-
>
46-
</ia-account-settings>`,
16+
<app-root></app-root>
4717

48-
document.querySelector('#demo')
49-
)
18+
<script type="module" src="../dist/demo/app-root.js">
5019
</script>
5120
</body>
5221
</html>

demo/index.php

-9
This file was deleted.

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { IAAccountSettings } from './src/ia-account-settings';
1+
export { YourWebComponent } from './src/your-webcomponent';

package.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "@internetarchive/iaux-account-settings",
2+
"name": "@internetarchive/your-webcomponent",
33
"description": "The Internet Archive Typescript WebComponent template. It is based on the @open-wc template.",
44
"repository": {
55
"type": "git",
6-
"url": "git+https://github.com/internetarchive/iaux-iaux-account-settings.git"
6+
"url": "git+https://github.com/internetarchive/iaux-your-webcomponent.git"
77
},
88
"license": "AGPL-3.0-only",
99
"author": "Internet Archive",
@@ -25,12 +25,6 @@
2525
"ghpages:generate": "gh-pages -t -d ghpages -m \"Build for $(git log --pretty=format:\"%h %an %ai %s\" -n1) [skip ci]\""
2626
},
2727
"types": "dist/index.d.ts",
28-
"dependencies": {
29-
"@internetarchive/ia-activity-indicator": "^0.0.4",
30-
"lit": "^2.6.0",
31-
"webpack": "^5.82.1",
32-
"webpack-cli": "^5.1.1"
33-
},
3428
"devDependencies": {
3529
"@open-wc/eslint-config": "^9.0.0",
3630
"@open-wc/testing": "^3.1.6",
@@ -101,5 +95,8 @@
10195
"prettier --write",
10296
"git add"
10397
]
98+
},
99+
"dependencies": {
100+
"lit": "^2.6.0"
104101
}
105102
}

src/components/authentication-template.ts

-103
This file was deleted.

0 commit comments

Comments
 (0)