Skip to content

Commit

Permalink
changed name to alfama
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishiv committed Jun 24, 2024
1 parent 798c586 commit 6408eb6
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 23 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# rocky7
# alfama

Fine grained reactive UI Library.

[![Version](https://img.shields.io/npm/v/rocky7.svg?color=success&style=flat-square)](https://www.npmjs.com/package/rocky7)
[![Version](https://img.shields.io/npm/v/alfama.svg?color=success&style=flat-square)](https://www.npmjs.com/package/alfama)
[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
[![Build Status](https://github.com/abhishiv/rocky7/actions/workflows/ci.yml/badge.svg)](https://github.com/abhishiv/rocky7/actions/workflows/ci.yml)
![Badge size](https://deno.bundlejs.com/?q=rocky7&config={%22analysis%22:undefined}&badge=)
[![Build Status](https://github.com/abhishiv/alfama/actions/workflows/ci.yml/badge.svg)](https://github.com/abhishiv/alfama/actions/workflows/ci.yml)
![Badge size](https://deno.bundlejs.com/?q=alfama&config={%22analysis%22:undefined}&badge=)

**npm**: `npm i rocky7`
**npm**: `npm i alfama`

**cdn**: https://cdn.jsdelivr.net/npm/rocky7/+esm
**cdn**: https://cdn.jsdelivr.net/npm/alfama/+esm

---

Expand All @@ -21,14 +21,14 @@ Fine grained reactive UI Library.
- **Signals and Stores.** Signals for primitives and Stores for deeply nested objects/arrays.
- **First class HMR** Preserves Signals/Stores across HMR loads for a truly stable HMR experience.
- **DevEx.** no compile step needed if you want: choose your view syntax: `h` for plain javascript or `<JSX/>` for babel/typescript.
- **Rich and Complete.** From support for `SVG` to popular patterns like `dangerouslySetInnerHTML`, `ref` to `<Fragment>` and `<Portal />` rocky has you covered.
- **Rich and Complete.** From support for `SVG` to popular patterns like `dangerouslySetInnerHTML`, `ref` to `<Fragment>` and `<Portal />` alfama has you covered.

#### Ecosystem

<table>
<tr>
<td>
<a href="https://github.com/abhishiv/rocky7-router">rocky7-router</a>
<a href="https://github.com/abhishiv/alfama-router">alfama-router</a>
</td>
<td>
Router with a familiar react-router like API
Expand All @@ -47,12 +47,12 @@ Fine grained reactive UI Library.

#### Example

[Counter - Codesandbox](https://codesandbox.io/s/counter-demo-rocky7-t7ift3?file=/src/index.tsx)
[Counter - Codesandbox](https://codesandbox.io/s/counter-demo-alfama-t7ift3?file=/src/index.tsx)

```tsx
/** @jsx h **/

import { component, h, render } from "rocky7";
import { component, h, render } from "alfama";

const Page = component<{ name: string }>(
"HomePage",
Expand Down Expand Up @@ -288,7 +288,7 @@ export const PortalExample = component("PortalExample", (props, utils) => {

```tsx
/** @jsx h **/
import { h, render } from "rocky7";
import { h, render } from "alfama";
import { Layout } from "./index";

const renderApp = ({ Layout }: { Layout: typeof Layout }) =>
Expand Down
2 changes: 1 addition & 1 deletion examples/kitchen-sink/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="title" content="rocky7 / counter" />
<meta name="title" content="alfama / counter" />
<link
rel="stylesheet"
media="screen"
Expand Down
4 changes: 2 additions & 2 deletions examples/kitchen-sink/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rocky7-kitchen-sink",
"name": "alfama-kitchen-sink",
"version": "1.0.0",
"description": "",
"type": "module",
Expand All @@ -12,7 +12,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"rocky7": ">=0.1.90"
"alfama": ">=0.1.90"
},
"devDependencies": {
"typescript": "^5.2.2",
Expand Down
6 changes: 3 additions & 3 deletions examples/kitchen-sink/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
Fragment,
reify,
produce,
} from "rocky7";
} from "alfama";

export const PortalExample = component("PortalExample", (props, utils) => {
const $active = utils.signal("active", false);
Expand Down Expand Up @@ -154,11 +154,11 @@ export const Layout = component<{}>(
<div id="home">
<div style="display: flex;">
<h2 style="flex: 1;">
Rocky7 Kitchen Sink <i class="las la-utensils"></i>
alfama Kitchen Sink <i class="las la-utensils"></i>
</h2>
<div>
<h4>
<a href="https://github.com/abhishiv/rocky7">
<a href="https://github.com/abhishiv/alfama">
<i class="lab la-github-alt"></i> docs
</a>
</h4>
Expand Down
2 changes: 1 addition & 1 deletion examples/kitchen-sink/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx h **/

import { h, render } from "rocky7";
import { h, render } from "alfama";

import { Layout } from "./index";

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rocky7",
"name": "alfama",
"version": "0.3.19",
"author": "Abhishiv Saxena<[email protected]>",
"license": "MIT",
Expand All @@ -13,7 +13,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/abhishiv/rocky7"
"url": "https://github.com/abhishiv/alfama"
},
"files": [
"./dist"
Expand Down
1 change: 1 addition & 0 deletions src/dom/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export const getRenderContext = (container: HTMLElement, element: VElement) => {

renderContext.prevState.clear();

// so HMR is properly cleaned up
renderContext.reg.forEach((step) => {
if (
step.type === DOMConstants.ComponentTreeStep &&
Expand Down
2 changes: 1 addition & 1 deletion src/dom/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@ export const arrayRemove = <T>(array: T[], ...items: T[]): void => {

export function createError(code: string | number, desc?: string) {
return new Error(
`Error ${code}: https://github.com/abhishiv/rocky7/wiki/Error-codes#code-${code}`
`Error ${code}: https://github.com/abhishiv/alfama/wiki/Error-codes#code-${code}`
);
}

0 comments on commit 6408eb6

Please sign in to comment.