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

Rename org and repo because I enjoy pain #693

Merged
merged 3 commits into from
May 23, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .storybook/gettings-started.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { html } from 'lit-html';
import { StorybookUtilities } from "@lrnwebcomponents/storybook-utilities/storybook-utilities.js";
import { StorybookUtilities } from "@haxtheweb/storybook-utilities/storybook-utilities.js";

export default {
title: "About|Getting Started",
Expand Down Expand Up @@ -54,7 +54,7 @@ export const UsingYourOwnCopy = () => {
>
<p>
Use the
<a href="https://github.com/elmsln/unbundled-webcomponents"
<a href="https://github.com/haxtheweb/unbundled-webcomponents"
>unbundled-webcomponents repository</a
>
to create your own custom collection of components.
Expand Down
4 changes: 2 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
setCustomElements,
withA11y
} from "@open-wc/demoing-storybook";
import "@lrnwebcomponents/storybook-utilities/storybook-utilities.js";
import "@haxtheweb/storybook-utilities/storybook-utilities.js";

addDecorator(withA11y);

Expand Down Expand Up @@ -49,7 +49,7 @@ addParameters({
inputBorderRadius: 4,

brandTitle: "ELMS:LN lrnwebcompomnents",
brandUrl: "https://github.com/elmsln/lrnwebcomponents",
brandUrl: "https://github.com/haxtheweb/webcomponents",
},
},
a11y: {
Expand Down
93 changes: 4 additions & 89 deletions .wcflibcache.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,4 @@
[{
"name": "HAXcmsTheme",
"description": "Build a theme for HAXcms that much faster",
"wcfactory": {
"customElementClass": "LitElement",
"templateReturnFunctionPart": "render() {\n return html",
"propertyBinding": {
"prefix": "${this.",
"suffix": "}"
}
},
"main": "HAXcmsTheme/HAXcmsTheme.js",
"version": "0.0.1",
"scripts": {
"start": "yarn run dev",
"build": "gulp --gulpfile=gulpfile.cjs && node --experimental-json-modules ../../node_modules/.bin/rollup --config && prettier --ignore-path ../../.prettierignore --write '**/*.{js,json}' && wca analyze \"**/*.js\" --outFile custom-elements.json",
"dev": "concurrently --kill-others \"yarn run watch\" \"yarn run serve\"",
"watch": "gulp dev --gulpfile=gulpfile.cjs",
"serve": "web-dev-server -c ../../web-dev-server.config.mjs",
"lighthouse": "gulp lighthouse --gulpfile=gulpfile.cjs"
},
"dependencies": {
"lit": "^2.2.4",
"@lrnwebcomponents/haxcms-elements": "^4.0.4",
"@lrnwebcomponents/simple-colors": "^4.0.4"
},
"devDependencies": {
"@wcfactory/rollup-umd-build": "^0.12.1",
"web-animations-js": "2.3.2",
"@lrnwebcomponents/deduping-fix": "^8.0.0",
"@polymer/iron-demo-helpers": "3.1.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@webcomponents/webcomponentsjs": "^2.8.0",
"gulp-babel": "8.0.0",
"lodash": "4.17.21",
"@web/dev-server": "0.1.28",
"concurrently": "5.3.0",
"polymer-build": "3.1.4",
"wct-browser-legacy": "1.0.2",
"@open-wc/testing": "4.0.0"
}
}
,
{
"name": "Vanilla",
"description": "HTMLElement class extension, 0 dependencies",
"wcfactory": {
Expand All @@ -63,7 +20,7 @@
"devDependencies": {
"@wcfactory/rollup-umd-build": "^0.12.1",
"web-animations-js": "2.3.2",
"@lrnwebcomponents/deduping-fix": "^8.0.0",
"@haxtheweb/deduping-fix": "^9.0.0-alpha.0",
"@polymer/iron-demo-helpers": "3.1.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@webcomponents/webcomponentsjs": "^2.8.0",
Expand Down Expand Up @@ -99,11 +56,11 @@
"lighthouse": "gulp lighthouse --gulpfile=gulpfile.cjs"
},
"dependencies": {
"lit": "^2.2.4"
"lit": "^3.1.3"
},
"devDependencies": {
"@wcfactory/rollup-umd-build": "^0.12.1",
"@lrnwebcomponents/deduping-fix": "^8.0.0",
"@haxtheweb/deduping-fix": "9.0.0-alpha.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@polymer/iron-demo-helpers": "3.1.0",
"@webcomponents/webcomponentsjs": "^2.8.0",
Expand All @@ -116,46 +73,4 @@
"web-animations-js": "2.3.2",
"@open-wc/testing": "4.0.0"
}
}
,
{
"name": "Singleton via LitElement",
"description": "Singleton element pattern with LitElement for help",
"wcfactory": {
"customElementClass": "LitElement",
"templateReturnFunctionPart": "render() {\n return html",
"propertyBinding": {
"prefix": "${this.",
"suffix": "}"
}
},
"main": "SingletonElement/SingletonElement.js",
"version": "0.0.1",
"scripts": {
"start": "yarn run dev",
"build": "gulp --gulpfile=gulpfile.cjs && node --experimental-json-modules ../../node_modules/.bin/rollup --config && prettier --ignore-path ../../.prettierignore --write '**/*.{js,json}' && wca analyze \"**/*.js\" --outFile custom-elements.json",
"dev": "concurrently --kill-others \"yarn run watch\" \"yarn run serve\"",
"watch": "gulp dev --gulpfile=gulpfile.cjs",
"serve": "web-dev-server -c ../../web-dev-server.config.mjs",
"lighthouse": "gulp lighthouse --gulpfile=gulpfile.cjs"
},
"dependencies": {
"lit": "^2.2.4"
},
"devDependencies": {
"@wcfactory/rollup-umd-build": "^0.12.1",
"web-animations-js": "2.3.2",
"@lrnwebcomponents/deduping-fix": "^8.0.0",
"@polymer/iron-demo-helpers": "3.1.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@webcomponents/webcomponentsjs": "^2.8.0",
"gulp-babel": "8.0.0",
"lodash": "4.17.21",
"@web/dev-server": "0.1.28",
"concurrently": "5.3.0",
"polymer-build": "3.1.4",
"wct-browser-legacy": "1.0.2",
"@open-wc/testing": "4.0.0"
}
}
,{}]
},{}]
53 changes: 27 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# lrnwebcomponents
# webcomponents
Monorepo of all elements built as part of the HAX ecosystem

# HAX
The authoring experience of HAX and the ability to make fast, static file backed websites rapidly.
Get all the details you want on [HAXTheWeb.org](https://haxtheweb.org/haxcms-1)!
Get all the details you want on [HAX docs](https://oer.hax.psu.edu/bto108/sites/haxcellence/)!
HAX seeks to be the smallest possible back-end CMS to make HAX work and be able to build websites with it. Leveraging JSON Outline Schema, HAX is able to author multiple pages, which it then writes onto the file system. This way a slim server layer is just for basic authentication, knowing how to save files, and placing them in version control.

Watch and Read more about HAX here:
Expand All @@ -12,16 +12,17 @@ Watch and Read more about HAX here:

# Issues / Support / Community
- Discord Channel - https://bit.ly/hax-discord
- Unified issue queue - https://github.com/elmsln/issues/issues
- Unified issue queue - https://github.com/haxtheweb/issues/issues
- Using Merlin directly in any HAX spaces and type "Issue" to jump start a report!

# Related links and tech

- [NPM Package list](https://www.npmjs.com/org/lrnwebcomponents)
- [NPM Package list](https://www.npmjs.com/org/haxtheweb)
- [storybook](https://haxapi.vercel.app/)
- [HAX doc site](https://haxtheweb.org/)
- [HAXcms](https://github.com/elmsln/haxcms)
- [HAX + 11ty](https://github.com/elmsln/hax11ty)
- [HAX [dot] PSU](https://hax.psu.edu)
- [HAX doc site](https://oer.hax.psu.edu/bto108/sites/haxcellence/)
- [HAXcms](https://github.com/haxtheweb/haxcms)
- [HAX + 11ty](https://github.com/haxtheweb/hax11ty)
- [WCFactory Tooling](https://wcfactory.js.org/)

[![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
Expand All @@ -30,13 +31,13 @@ Watch and Read more about HAX here:
[![#HAXTheWeb](https://img.shields.io/badge/-HAXTheWeb-999999FF?style=flat&logo=data:image/svg%2bxml;base64,PHN2ZyBpZD0iZmVhMTExZTAtMjEwZC00Y2QwLWJhMWQtZGZmOTQyODc0Njg1IiBkYXRhLW5hbWU9IkxheWVyIDEiIHhtbG5zPSJodH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LjMxIDYzLjcgNDUuNzIgNjMuNyA0NS43MiA3NiA1OC44OSA3NiA1OC44OSA4OC4zIDcxLjQ4IDg4LjMgNzEuNDggMTAwLjYxIDg0LjA3IDEwMC42MSA4NC4wNyAxMTIuOTEgNTguODkgMTEyLjkxIDU4Ljg5IDEwMC42MSA0Ni4zMSAxMDAuNjEgNDYuMzEgODguMyAzMy43MiA4OC4zIDMzLjcyIDc2IDIwLjU0IDc2IDIwLjU0IDYzLjcgMzMuMTMgNjMuNyIvPjwvc3ZnPg==)](https://haxtheweb.org/)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-f8bc45.svg)](https://github.com/prettier/prettier)

[![Published on npm](https://img.shields.io/npm/v/@lrnwebcomponents/h-a-x?style=flat)](https://www.npmjs.com/search?q=%40lrnwebcomponents)
[![build](https://github.com/elmsln/lrnwebcomponents/workflows/build/badge.svg?branch=master)](https://github.com/elmsln/lrnwebcomponents/actions?query=branch%3Amaster)
[![Dependency Status](https://img.shields.io/david/elmsln/lrnwebcomponents.svg?style=flat)](https://david-dm.org/elmsln/lrnwebcomponents)
[![Published on npm](https://img.shields.io/npm/v/@haxtheweb/h-a-x?style=flat)](https://www.npmjs.com/search?q=%haxtheweb)
[![build](https://github.com/haxtheweb/webcomponents/workflows/build/badge.svg?branch=master)](https://github.com/haxtheweb/webcomponents/actions?query=branch%3Amaster)
[![Dependency Status](https://img.shields.io/david/haxtheweb/webcomponents.svg?style=flat)](https://david-dm.org/haxtheweb/webcomponents)
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/author/elmsln)
[![Twitter](https://img.shields.io/twitter/follow/haxtheweb.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=haxtheweb)

# Welcome to the lrnwebcomponents project!
# Welcome to the haxtheweb project!
Web components that can work in just about anything, are very small (Vanila or Lit based) and have full on authoring solutions if you dig deeper; Enjoy!

![Logo](https://github.com/elmsln/elmsln-logos/blob/master/haxtheweb/2019-08-14_13-05-52.png)
Expand All @@ -47,14 +48,14 @@ Web components that can work in just about anything, are very small (Vanila or L

### Quick Install
```bash
curl -fsSL https://raw.githubusercontent.com/elmsln/lrnwebcomponents/master/scripts/lrnwebcomponentsme.sh -o lrnwebcomponentsme.sh && sh lrnwebcomponentsme.sh
curl -fsSL https://raw.githubusercontent.com/haxtheweb/webcomponents/master/scripts/haxthewebme.sh -o haxthewebme.sh && sh haxthewebme.sh
```

### Manual Install

```bash
git clone https://github.com/elmsln/lrnwebcomponents.git
cd lrnwebcomponents
git clone https://github.com/haxtheweb/webcomponents.git
cd webcomponents
yarn global add @wcfactory/cli
yarn global add polymer-cli
yarn global add @web/test-runner
Expand All @@ -68,7 +69,7 @@ yarn install

### Syncing Your Fork
```
git remote add upstream https://github.com/elmsln/lrnwebcomponents.git
git remote add upstream https://github.com/haxtheweb/webcomponents.git
git fetch upstream
git pull
```
Expand All @@ -86,8 +87,8 @@ git config --global core.autocrlf true
```

```bash
git clone https://github.com/elmsln/lrnwebcomponents.git
cd lrnwebcomponents
git clone https://github.com/haxtheweb/webcomponents.git
cd webcomponents
yarn global add @wcfactory/cli
yarn global add polymer-cli
yarn global add @web/test-runner
Expand All @@ -114,15 +115,15 @@ Edit files in `lib/`, `src/`, `locales/` and `demo/` in order to modify the elem
- `yarn run rebuild-wcfcache`
- Rebuild caches as to what web component libraries can be used
- `yarn test`
- Run tests on ALL lrnwebcomponents.
- Run tests on ALL webcomponents.
- `yarn run build`
- Run build on ALL lrnwebcomponents.
- Run build on ALL webcomponents.
- `yarn run storybook`
- Run storybook
- `yarn run build-storybook`
- Build storybook for deployment
- `lerna publish`
- Publish ALL lrnwebcomponents' elements to npmjs.com
- Publish ALL webcomponents' elements to npmjs.com

- `lerna run build --no-bail`
- Run `build` command in all projects in the repo, don't bail if there's an issue
Expand All @@ -139,7 +140,7 @@ Run `wcf element` to make a new element. Go to the new element following the dir
### Example development on a web component

```bash
cd /Sites/lrnwebcomponents
cd /Sites/webcomponents
yarn start

# SHIFT + CTRL + T to open a new tab in Terminal
Expand All @@ -152,7 +153,7 @@ Make a change to the web component and save. The gulpfile will handle transpilin

## Test

To test all lrnwebcomponents, run `yarn test` from the root of the repo. If you only want to test the web component you're working on:
To test all webcomponents, run `yarn test` from the root of the repo. If you only want to test the web component you're working on:

```bash
cd elements/your-card
Expand All @@ -165,11 +166,11 @@ Also, if your tests are failing and you want access to a live browser to investi
yarn test -- -p
```

Then open the URL that will be printed in the terminal. It looks something like this: `http://localhost:8081/components/@@lrnwebcomponents/lrnwebcomponents/generated-index.html?cli_browser_id=0`.
Then open the URL that will be printed in the terminal. It looks something like this: `http://localhost:8081/components/@@haxtheweb/haxtheweb/generated-index.html?cli_browser_id=0`.

## Storybook

We've added [Storybook](https://storybook.js.org/) to lrnwebcomponents as a way to preview our web components as they are being developed. We'll also use Storybook to export a static site that will be the demo site for lrnwebcomponents.
We've added [Storybook](https://storybook.js.org/) to webcomponents as a way to preview our web components as they are being developed. We'll also use Storybook to export a static site that will be the demo site for webcomponents.

To run storybook

Expand All @@ -194,7 +195,7 @@ For any web component that has a third-party dependency you will need to update
For example:

```js
"../../whatwg-fetch/fetch.js": path.join( // this is the third-party dependency in the lrnwebcomponents
"../../whatwg-fetch/fetch.js": path.join( // this is the third-party dependency in the webcomponents
__dirname,
"../node_modules/whatwg-fetch/fetch.js" // this is where it lives in node_modules
)
Expand All @@ -216,4 +217,4 @@ Contributions are always welcome!
- [@cgldevel](https://www.github.com/cgldevel)

## Additional contributions
Past contributors, student and larger community, can be found here: https://github.com/elmsln/lrnwebcomponents/graphs/contributors
Past contributors, student and larger community, can be found here: https://github.com/haxtheweb/webcomponents/graphs/contributors
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ If we get a security issue in a specific version, we are going to fix it in a ne

## Reporting a Vulnerability

Security related issues should be filed in our general issue queue https://github.com/elmsln/issues/issues
Security related issues should be filed in our general issue queue https://github.com/haxtheweb/issues/issues
2 changes: 1 addition & 1 deletion api/apps/haxcms/lib/JSONOutlineSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fetch from "node-fetch";
import { JSONOutlineSchemaItem } from './JSONOutlineSchemaItem.js';
/**
* JSONOutlineSchema - An object for interfacing with the JSON Outline schema
* specification. @see https://github.com/elmsln/json-outline-schema
* specification. @see https://github.com/haxtheweb/json-outline-schema
* for more details. This provides a simple way of loading outlines, parsing
* and working with the items in them while writing back to the specification
* accurately.
Expand Down
2 changes: 1 addition & 1 deletion api/apps/haxcms/siteToEpub.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async function handler(req, res) {
author: 'btopro',
publisher: 'btopro',
cover: "https://oer.hax.psu.edu/bto108/sites/edtechjoker/assets/banner.jpg",
output: `/home/bto108a/lrnwebcomponents/${site.title}.epub`,
output: `/home/bto108a/haxtheweb/${site.title}.epub`,
content: items
};
new Epub(options).promise.then(() => console.log('Done'));
Expand Down
10 changes: 5 additions & 5 deletions api/apps/haxcms/siteToHtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ export default async function handler(req, res) {
<link rel="preconnect" crossorigin href="https://fonts.googleapis.com">
<link rel="preload" href="${magic}build.js" as="script" />
<link rel="preload" href="${magic}wc-registry.json" as="fetch" crossorigin="anonymous" />
<link rel="preload" href="${magic}build/es6/node_modules/@lrnwebcomponents/dynamic-import-registry/dynamic-import-registry.js" as="script" crossorigin="anonymous" />
<link rel="modulepreload" href="${magic}build/es6/node_modules/@lrnwebcomponents/dynamic-import-registry/dynamic-import-registry.js" />
<link rel="preload" href="${magic}build/es6/node_modules/@lrnwebcomponents/wc-autoload/wc-autoload.js" as="script" crossorigin="anonymous" />
<link rel="modulepreload" href="${magic}build/es6/node_modules/@lrnwebcomponents/wc-autoload/wc-autoload.js" />
<link rel="stylesheet" href="${magic}build/es6/node_modules/@lrnwebcomponents/haxcms-elements/lib/base.css" />
<link rel="preload" href="${magic}build/es6/node_modules/@haxtheweb/dynamic-import-registry/dynamic-import-registry.js" as="script" crossorigin="anonymous" />
<link rel="modulepreload" href="${magic}build/es6/node_modules/@haxtheweb/dynamic-import-registry/dynamic-import-registry.js" />
<link rel="preload" href="${magic}build/es6/node_modules/@haxtheweb/wc-autoload/wc-autoload.js" as="script" crossorigin="anonymous" />
<link rel="modulepreload" href="${magic}build/es6/node_modules/@haxtheweb/wc-autoload/wc-autoload.js" />
<link rel="stylesheet" href="${magic}build/es6/node_modules/@haxtheweb/haxcms-elements/lib/base.css" />
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "module",
"name": "vercel-api-lrnwebcomponents",
"name": "vercel-api-webcomponents",
"dependencies": {
"@lit-labs/ssr": "3.2.2",
"jsdom": "24.0.0",
Expand Down
2 changes: 1 addition & 1 deletion api/services/media/format/docxToPdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default async function handler(req, res) {
.then(async (result) => {
// need to outsource this endpoint from vercel 1 to 2 for scale reasons
let html = `<html><body>${result.value}</body></html>`;
const response = await fetch(`https://pdf-from.elmsln.vercel.app/api/pdfFrom`,
const response = await fetch(`https://pdffrom-haxtheweb.vercel.app/api/pdfFrom`,
{
method: 'POST',
body: JSON.stringify({
Expand Down
Loading
Loading