Skip to content

Commit ee0c057

Browse files
author
Vishal Vora
committed
bump v0.10
1 parent 584ae51 commit ee0c057

6 files changed

Lines changed: 11 additions & 16 deletions

File tree

frontend/src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h3 style="font-size: calc(1.3rem + .4vw); font-weight:600">{{element.prop.data}
116116
<li nz-menu-item *ngFor="let l of element.prop.data" (click)="list_click(element,l)">{{l}}</li>
117117
</ul> -->
118118
<nz-list >
119-
<nz-list-item *ngFor="let l of element.prop.data" style="align-items: start;">
119+
<nz-list-item *ngFor="let l of element.prop.data" style="align-items: start; cursor: pointer;" (click)="list_click(element,l)">
120120
<div *ngIf = "true">
121121
<!-- <div>
122122
<img width="100" alt="logo" *ngIf="l.image" [src]="l.image" />

lib/datastack/stacker/stacker.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def __init__(self, type="main_page", path="", title="", main=False):
6868
# runtime.collect_cls(self)
6969

7070
def dynamic_widget_id(self):
71-
return str(time.time_ns())
71+
# return str(time.time_ns())
72+
return str(uuid.uuid4())
7273

7374
def button(
7475
self,
@@ -394,8 +395,6 @@ def list(
394395
data: Iterable = [],
395396
on_click: Optional[Callable] = None,
396397
id: Optional[str] = None,
397-
slot_start: Optional[str] = None,
398-
slot_end: Optional[str] = None,
399398
):
400399
"""Display list element
401400
@@ -411,16 +410,11 @@ def list(
411410
id : str
412411
An optional string or integer to use as the unique key for the element.
413412
414-
slot_start : str
415-
data top be diplay at the beginning of the list
416-
417-
slot_end : str
418-
data to be dipalay at the end of the list
419-
420413
Examples
421414
--------
422415
423-
>>> ds.list(['python', 'javascript', 'java', 'c++', 'pascal'])
416+
>>> selected_lan = ds.list(['python', 'javascript', 'java', 'c++', 'pascal'])
417+
>>> ds.write('your favourite language: ' + selected_lan)
424418
425419
"""
426420
block = {
@@ -429,8 +423,6 @@ def list(
429423
"prop": {
430424
"data": data,
431425
"value": "",
432-
"slot_start": slot_start,
433-
"slot_end": slot_end,
434426
},
435427
}
436428
try:
@@ -448,6 +440,8 @@ def list(
448440
if not self.replace_block(id, block):
449441
self.append_block(block)
450442

443+
return "none"
444+
451445
def menu(
452446
self,
453447
data: Iterable,

lib/datastack/static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
<body>
1111
<app-root></app-root>
1212
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
13-
<script src="runtime.1de5c4e609b22f85.js" type="module"></script><script src="polyfills.ed4fe3edd840e1b2.js" type="module"></script><script src="scripts.b35cb861d669039a.js" defer></script><script src="main.24d609161ac4b0d4.js" type="module"></script></body>
13+
<script src="runtime.1de5c4e609b22f85.js" type="module"></script><script src="polyfills.ed4fe3edd840e1b2.js" type="module"></script><script src="scripts.b35cb861d669039a.js" defer></script><script src="main.78d7a7f2c49a7951.js" type="module"></script></body>
1414
</html>

lib/datastack/static/main.78d7a7f2c49a7951.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/docs/docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def parse_rst(rst_string):
328328
)
329329

330330
details_container = ds.container()
331-
details_container.header("Welcom to DataStack")
331+
details_container.header("Welcome to DataStack")
332332
details_container.divider()
333333
details_container.subheader("The Fastest way to build apps in python")
334334
details_container.write(

lib/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setuptools.setup(
66
name="pydatastack",
7-
version="0.0.10",
7+
version="0.0.11",
88
author="Vishal Vora, Mayur Pokiya, Karan Doshi",
99
description="The Fastes way to build apps in python",
1010
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)