Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
b8c0dd2
Boiler Plate
ddroid Jan 7, 2025
a3bfac4
Update README.md
ddroid Jan 7, 2025
0bb5606
Updated the Code to v0.0.2
ddroid Jan 9, 2025
841a11b
Update README.md
ddroid Jan 7, 2025
84edf68
Updated the Code to v0.0.2
ddroid Jan 9, 2025
4a2a95a
Forget to build v0.0.2
ddroid Jan 9, 2025
78a619f
Action Wizard v0.0.1
ddroid Jan 15, 2025
a050291
some small tweaks and improved css
ddroid Jan 15, 2025
8f7b26f
bundled
ddroid Jan 15, 2025
ba284ee
standardJS and SnakeCase
ddroid Jan 17, 2025
3280c0a
Created menu for viewing and updated existing code
ddroid Jan 24, 2025
f46b482
updated the web/index.js for better preview
ddroid Jan 26, 2025
4d420e7
Fixed a bug
ddroid Jan 26, 2025
a310a86
Changed the src/index.js
ddroid Jan 26, 2025
0cc50c5
fine tuned according to feedback
ddroid Feb 9, 2025
9bec91f
state
ddroid Mar 5, 2025
f468ba0
temp testing
ddroid Mar 8, 2025
d33e563
temp testing & bundled
ddroid Mar 8, 2025
b98c6a3
updated boot.js
ddroid Mar 9, 2025
37d7382
Update README.md
ddroid Mar 10, 2025
70d87a5
updated the web folder
ddroid Mar 10, 2025
b8881a0
added Readme
ddroid Mar 10, 2025
ffa35d1
changed the path
ddroid Mar 10, 2025
7504afa
commented state modules
ddroid Mar 13, 2025
5565fba
rem index.js for ez understanding
ddroid Mar 13, 2025
a0d3456
moved the fallback at end
ddroid Mar 13, 2025
edc3649
testing the boot.js
ddroid Mar 15, 2025
414e636
bundled
ddroid Mar 16, 2025
f314501
restored files
ddroid Mar 20, 2025
897feb2
new version
ddroid Mar 20, 2025
406e20a
bundled
ddroid Mar 20, 2025
bce4d5d
tweaked the errors
ddroid Mar 20, 2025
5f4fadd
moved files back to web/
ddroid Mar 22, 2025
cd65121
changed to ./index
ddroid Mar 22, 2025
98898e7
restored files
ddroid Mar 26, 2025
d824317
test
ddroid Mar 27, 2025
595ddfd
old code
ddroid Mar 27, 2025
dfd8b07
uncommented old code
ddroid Mar 27, 2025
2701aaa
one last thing that I forgot
ddroid Mar 27, 2025
cf49d74
fixed the errors
ddroid Mar 29, 2025
76f37e2
bundled
ddroid Mar 29, 2025
239e0a8
initial version for new code
ddroid Mar 30, 2025
22bdbcb
facing some new errors
ddroid Apr 8, 2025
2c2b9d6
tweaking but still facing errors
ddroid Apr 8, 2025
ae8a485
Ali latest work
ddroid Apr 8, 2025
340538a
updated boot.js
ddroid Apr 9, 2025
116d08e
added rel icon
ddroid Apr 9, 2025
40d34be
fixed the error by removing fb_instance
ddroid Apr 9, 2025
92e812f
initial proto
ddroid Apr 28, 2025
18970d3
bundled
ddroid Apr 28, 2025
665bf0c
polished
ddroid Apr 28, 2025
1818cc5
updated the code with latest ali commit
ddroid May 9, 2025
2f5b7e0
saving
ddroid May 12, 2025
bdc92f2
no comm
ddroid May 13, 2025
480c678
fixed issues
ddroid May 13, 2025
53ec38f
--dir
ddroid May 15, 2025
ae50b9c
tabsbar & more changes to tabs
ddroid May 17, 2025
97c7432
fixed the issues
ddroid May 20, 2025
8651a6a
uncomment
ddroid May 21, 2025
a9eb340
task_manager
ddroid May 21, 2025
a867cd0
action_bar
ddroid May 22, 2025
7e61c92
console_history
ddroid May 23, 2025
544ae57
space
ddroid May 25, 2025
db6a6f4
console_history
ddroid May 26, 2025
a715aad
actions
ddroid May 26, 2025
19cb14c
page
ddroid May 26, 2025
1f34712
mostly done with double callbacks
ddroid Jun 6, 2025
3938c0a
bundled
ddroid Jun 6, 2025
de73f33
saving
ddroid Jun 9, 2025
aaaf0e3
tabbed_editor
ddroid Jun 9, 2025
049c920
page.js
ddroid Jun 9, 2025
c30c4ff
tweak
ddroid Jun 9, 2025
298ef8d
latest@ali commit update
ddroid Jun 10, 2025
2a508ab
bundled
ddroid Jun 10, 2025
5b03820
bug related to multiple files
ddroid Jun 11, 2025
9ca1e5b
Test
alyhxn Jun 12, 2025
831cc57
Merged
alyhxn Jun 12, 2025
e0e2cdf
Added quick_editor
alyhxn Jun 12, 2025
4ba08e8
Small bug fixed
alyhxn Jun 12, 2025
1e2d0f7
Merge pull request #1 from alyhxn/main
ddroid Jun 12, 2025
c8e3b93
rem debugging files
ddroid Jun 12, 2025
e325b28
implemented feedback
ddroid Jun 12, 2025
fe20d7b
bundled
ddroid Jun 12, 2025
7762319
proto of graph
ddroid Jun 15, 2025
cd4cde3
Update quick editor
alyhxn Jun 18, 2025
54bd91e
add steps wizards to page
MuhammadAzim01 Jun 19, 2025
1795c47
fix format
MuhammadAzim01 Jun 19, 2025
c76f88c
Merge pull request #2 from MuhammadAzim01/main
ddroid Jun 20, 2025
e6c486c
Merge branch 'ddroid:main' into main
alyhxn Jun 20, 2025
6a9bbae
Update quick editor
alyhxn Jun 18, 2025
cf56628
Merge branch 'main' of https://github.com/alyhxn/ui-components
alyhxn Jun 20, 2025
a9cbd14
add boilerplate component
MuhammadAzim01 Jun 21, 2025
6748c88
add guide
MuhammadAzim01 Jun 21, 2025
3e77fad
quick
ddroid Jun 21, 2025
6d53750
quick_fix
ddroid Jun 21, 2025
3ba45b9
fix conflict
MuhammadAzim01 Jun 22, 2025
37be424
change to minimal code
MuhammadAzim01 Jun 22, 2025
553c4d1
graph_explorer
ddroid Jun 22, 2025
879fcfa
Added apply feature
alyhxn Jun 23, 2025
3cbe95a
Remove ignored files from repo
alyhxn Jun 23, 2025
acc95c7
remove admin files
alyhxn Jun 23, 2025
2ea0703
Merge remote-tracking branch 'upstream/main'
MuhammadAzim01 Jun 23, 2025
758f6bd
Merge pull request #4 from alyhxn/main
ddroid Jun 23, 2025
83a4671
Merge remote-tracking branch 'upstream/main'
MuhammadAzim01 Jun 23, 2025
7a9ea2e
updated graph_explorer
ddroid Jun 23, 2025
408a29d
updated graph_explorer to new structure
ddroid Jun 24, 2025
d0fc99c
log json result
MuhammadAzim01 Jun 24, 2025
e6cb804
update bundle js
MuhammadAzim01 Jun 24, 2025
980e9eb
save changes
MuhammadAzim01 Jun 24, 2025
6f57baf
update bundle
MuhammadAzim01 Jun 24, 2025
9380f9f
added some prefixes
ddroid Jun 24, 2025
fb1e38d
bundled
ddroid Jun 24, 2025
9bb3722
bundled
ddroid Jun 25, 2025
61d3ef2
working ongraph_explorer--> hubs
ddroid Jun 26, 2025
ba7ace4
connect components
MuhammadAzim01 Jun 26, 2025
0c5b385
update svg
MuhammadAzim01 Jun 26, 2025
d7ede16
update bundle
MuhammadAzim01 Jun 26, 2025
9f52975
working ongraph_explorer--> hubs$1
ddroid Jun 29, 2025
168dcf4
working ongraph_explorer--> hubs$2
ddroid Jun 29, 2025
45e963c
working ongraph_explorer--> hubs$3
ddroid Jun 29, 2025
5906907
graph_explorer
ddroid Jun 29, 2025
7f84273
update
ddroid Jun 29, 2025
dd4c5cf
added scrolling logic and fixed jump up bug
ddroid Jun 30, 2025
399017e
added emoji, fixed clickables, lines & rem mono font
ddroid Jun 30, 2025
d26a08a
bundled
ddroid Jun 30, 2025
1452494
restrucutre steps wizard
MuhammadAzim01 Jul 5, 2025
91c3bd1
remove json
MuhammadAzim01 Jul 5, 2025
cf372ee
demo step
MuhammadAzim01 Jul 5, 2025
48525eb
add dynamic component handling
MuhammadAzim01 Jul 5, 2025
db34012
update bundle
MuhammadAzim01 Jul 5, 2025
68ed17a
remove comment
MuhammadAzim01 Jul 5, 2025
3a99002
updated graph_explorer according to feedback
ddroid Jul 7, 2025
fdd911e
fixed tree last node bug
ddroid Jul 10, 2025
7ac2c48
add ui changes
MuhammadAzim01 Jul 10, 2025
ed6b2c9
Merge branch 'main' into main
ddroid Jul 12, 2025
68fac6b
fixed tree floating pipes when stacking hubs
ddroid Jul 12, 2025
b86d1b4
add view any step form
MuhammadAzim01 Jul 12, 2025
9e86395
Merge branch 'main' of https://github.com/MuhammadAzim01/ui-components
MuhammadAzim01 Jul 12, 2025
bc1a44b
update bundle js
MuhammadAzim01 Jul 12, 2025
1751927
add overlay lock
MuhammadAzim01 Jul 12, 2025
633eec8
add overlay css
MuhammadAzim01 Jul 12, 2025
34c0dc3
integrated graph_explorer from different repo
ddroid Jul 13, 2025
180fa7b
packaged added
ddroid Jul 13, 2025
e5291f9
changed required path
ddroid Jul 15, 2025
1a06df8
stepswizard under quick actions
MuhammadAzim01 Jul 19, 2025
9af0b27
add manager js
MuhammadAzim01 Jul 20, 2025
a0a73f6
print result in program
MuhammadAzim01 Jul 20, 2025
4c8bbea
Merge pull request #1 from MuhammadAzim01/feature/architecture
MuhammadAzim01 Jul 20, 2025
14528db
move actions and quick actions to action bar
MuhammadAzim01 Jul 26, 2025
660d06b
add standardx
MuhammadAzim01 Jul 26, 2025
0e666ac
refactor quick actions
MuhammadAzim01 Jul 26, 2025
13d71cb
refactor manager
MuhammadAzim01 Jul 26, 2025
3b66be3
refactor action bar
MuhammadAzim01 Jul 26, 2025
3fbe0ad
store form data
MuhammadAzim01 Jul 26, 2025
5e994e1
retain steps data
MuhammadAzim01 Jul 26, 2025
44ef87c
update bundle js
MuhammadAzim01 Jul 26, 2025
913852f
Merge pull request #2 from MuhammadAzim01/feature/architecture
MuhammadAzim01 Jul 26, 2025
b751680
import forms from program
MuhammadAzim01 Jul 27, 2025
85a2180
Merge pull request #3 from MuhammadAzim01/feature/architecture
MuhammadAzim01 Jul 27, 2025
b84af84
add error on input
MuhammadAzim01 Jul 27, 2025
af352f9
Merge pull request #4 from MuhammadAzim01/feature/architecture
MuhammadAzim01 Jul 27, 2025
4bb2f97
add arrows
MuhammadAzim01 Jul 29, 2025
c67e46d
Merge pull request #5 from MuhammadAzim01/feature/architecture
MuhammadAzim01 Jul 29, 2025
a16a09d
Merge branch 'main' into main
ddroid Jul 31, 2025
95e9887
Merge pull request #3 from MuhammadAzim01/main
ddroid Jul 31, 2025
cd27bfb
fixed the dependency issues
ddroid Aug 1, 2025
3b52154
show scroll bar
MuhammadAzim01 Aug 13, 2025
360f2a8
center btn
MuhammadAzim01 Aug 13, 2025
b05b015
add ellipses and no wrap
MuhammadAzim01 Aug 17, 2025
5a5a6f4
Merge pull request #6 from MuhammadAzim01/steps_wizard/ui-changes
MuhammadAzim01 Aug 17, 2025
5906f6a
fixed error and bundled
ddroid Aug 19, 2025
d726c8e
updated docs
ddroid Aug 20, 2025
ffaff59
updated docs v2
ddroid Aug 20, 2025
31bb478
add arrows
MuhammadAzim01 Aug 24, 2025
5749164
Merge pull request #7 from MuhammadAzim01/steps_wizard/ui-changes
MuhammadAzim01 Aug 24, 2025
582bc75
Import, export and global control for quick editor
alyhxn Sep 3, 2025
c6ced88
Merge pull request #5 from alyhxn/main
ddroid Sep 13, 2025
ce7d7af
Merge branch 'main' into main
ddroid Sep 14, 2025
f0a8a07
Merge pull request #6 from MuhammadAzim01/main
ddroid Sep 14, 2025
27733b0
bundled after merge
ddroid Sep 14, 2025
aadab70
update state admin
MuhammadAzim01 Sep 15, 2025
5337c74
Merge pull request #8 from MuhammadAzim01/steps_wizard/ui-changes
MuhammadAzim01 Sep 15, 2025
c9c446a
Added root datasets in quick editor
alyhxn Sep 16, 2025
5a5be0f
Merge branch 'main' into main
ddroid Nov 2, 2025
c120d54
Merge pull request #7 from MuhammadAzim01/main
ddroid Nov 2, 2025
1bb472f
Merge pull request #8 from alyhxn/main
ddroid Nov 2, 2025
7a0ec81
Fixed Mapping Issues
ddroid Nov 2, 2025
8f0023d
Bundled
ddroid Nov 2, 2025
a3d38b2
Some Changes related to graph-explorer
ddroid Nov 8, 2025
333005d
bundled
ddroid Nov 8, 2025
549c0ba
Integrated the Graph Component
ddroid Nov 23, 2025
d1d6515
bundled
ddroid Nov 23, 2025
45aa193
fresh bundle
ddroid Nov 23, 2025
db588d3
upgrade datashell
serapath Nov 24, 2025
e24f7ed
update bundle
serapath Nov 24, 2025
dd01f6c
Merge pull request #9 from serapath/main
ddroid Nov 24, 2025
c955883
Update Protocol
ddroid Nov 24, 2025
9398e70
Update Protocol of Azim's components
ddroid Nov 24, 2025
72877b5
bundled
ddroid Nov 24, 2025
64d2f5b
Added Focus Tracker
ddroid Nov 25, 2025
a8eac03
bundled
ddroid Nov 25, 2025
e30ff8d
Added Variable "to & by" to all components
ddroid Nov 26, 2025
1704583
Upgraded Linter
ddroid Nov 26, 2025
1e6dd15
Did Manually Required Linting
ddroid Nov 26, 2025
e1d1be6
Updated Readme and Linted
ddroid Nov 26, 2025
cb68acc
replaced actionbar with manager
ddroid Nov 26, 2025
e6cbb2d
bundled
ddroid Nov 26, 2025
7e9ac95
small error
ddroid Nov 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/node_modules/*
/package-lock.json
/npm-debug.log
localdb.js
io.js
init.js
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# ui-components
see https://playproject.io/ui-components/


This is a showcase place for the Theme Widget app components.
This app is a simple app that allows you to change the theme of a website and see the changes in real time.

To clone and install, run the following commands:

```bash
git clone https://github.com/ddroid/ui-components
cd ui-components
npm install
npm run start
```
9,036 changes: 9,036 additions & 0 deletions bundle.js

Large diffs are not rendered by default.

167 changes: 167 additions & 0 deletions guide/cheat_sheet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
# Cheat Sheet for UI Components Development

## Repository Structure

### General Structure
- **`src/<modulename>.js`**: Main component to be implemented and published.
- **`src/node_modules/<dependencies>`**: Internal dependencies developed within the same repository.
- **`web/page.js`**: Short presentation page converted into `bundle.js` and loaded by `index.html`.
- **`index.html`**: Entry point for the browser.
- **`package.json`**: Defines the project metadata and dependencies.

### Boilerplate Files

#### `index.html`
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="icon" href="data:,">
</head>
<body>
<script src="bundle.js#1"></script>
</body>
</html>
```

#### `package.json`
```json
{
"name": "example",
"version": "0.0.1",
"description": "example for using STATE",
"type": "commonjs",
"main": "src/example.js",
"scripts": {
"start": "budo web/boot.js:bundle.js --dir . --open --live",
"build": "browserify web/boot.js -o bundle.js"
},
"devDependencies": {
"browserify": "^17.0.1",
"budo": "^11.8.4"
}
}
```

#### `web/boot.js`
```javascript
const hash = '895579bb57e5c57fc66e031377cba6c73a313703'
const prefix = 'https://raw.githubusercontent.com/alyhxn/playproject/' + hash + '/'
const init_url = 'https://raw.githubusercontent.com/alyhxn/playproject/' + hash + '/doc/state/example/init.js'
const args = arguments

fetch(init_url, { cache: 'no-store' }).then(res => res.text()).then(async source => {
const module = { exports: {} }
const f = new Function('module', 'require', source)
f(module, require)
const init = module.exports
await init(args, prefix)
require('./page')
})
```

#### `web/page.js`
```javascript
const STATE = require('STATE')
const statedb = STATE(__filename)
const { sdb } = statedb(defaults)

const example = require('..')

const subs = sdb.watch(onbatch)
const [{ sid }] = subs
const element = example({ sid })
document.body.append(element)

function onbatch (batch) {
// Handle updates
}

function defaults () {
return {
_: {
'..': {
$: '',
0: override
}
}
}

function override ([example]) {
const data = example()
// Customize `data` if needed
return data
}
}
```

#### `src/example.js`
```javascript
const STATE = require('STATE')
const statedb = STATE(__filename)
const { sdb, get } = statedb(defaults)

module.exports = example

function example (opts) {
const { sdb } = get(opts.sid)

const drive = sdb.drive({ type: 'text' })
const text = drive.get('title.json')
const el = document.createElement('div')
el.innerHTML = `<h1> ${text} </h1>`

return el
}

function defaults () {
return {
drive: {},
api,
_: {}
}

function api () {
const drive = {
'text/': {
'title.json': { raw: 'hello world' }
}
}
return { drive, _: {} }
}
}
```

## Development Workflow
1. **Initialization**:
- Run `npm init -y` in the directory.

2. **Set up the repository**:
- Create the boilerplate files (`index.html`, `package.json`, `web/boot.js`, `web/page.js`, `src/example.js`).

3. **Run the development server**:
```bash
npm start
```

4. **Build the bundle**:
```bash
npm run build
```

5. **Preview the component**:
- Open address returned by `npm start` in a browser to see the component in action.

## Advanced Features

- Use the `STATE` module for state management and persistent storage.
- Define `drive` objects to store data in `localStorage`.
- Use `onbatch` to handle updates dynamically.
- Customize components using the `defaults` and `api` functions.

## Examples Component: `action_bar.js`
- [`module_example`](./tabs_commented.js)

## Module creation Explanation:
[`module_guide`](./deep_guide_for_modules.md)
Loading