amotify 0.2.233 → 0.2.234

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/@declares/property.d.ts +1 -0
  2. package/dist/@utils/LaunchReactApp.d.ts +5 -3
  3. package/dist/atoms/Box.d.ts +2 -2
  4. package/dist/atoms/Box.js +1 -1
  5. package/dist/atoms/Logo.d.ts +14 -14
  6. package/dist/atoms/Logo.js +3 -3
  7. package/dist/fn/Button.d.ts +3 -3
  8. package/dist/fn/Button.js +1 -1
  9. package/dist/fn/Effect/index.d.ts +2 -2
  10. package/dist/fn/Input/Autocomplete.d.ts +3 -3
  11. package/dist/fn/Input/Autocomplete.js +1 -1
  12. package/dist/fn/Input/List.d.ts +12 -12
  13. package/dist/fn/Input/List.js +1 -1
  14. package/dist/fn/Input/Search.d.ts +1 -1
  15. package/dist/fn/Input/Search.js +1 -1
  16. package/dist/fn/Input/Segmented.d.ts +7 -7
  17. package/dist/fn/Input/Segmented.js +1 -1
  18. package/dist/fn/Input/Select.d.ts +1 -1
  19. package/dist/fn/Input/TextField.d.ts +1 -1
  20. package/dist/fn/Input/Time/index.d.ts +9 -9
  21. package/dist/fn/Input/Time/index.js +1 -1
  22. package/dist/fn/Loader/index.d.ts +1 -1
  23. package/dist/fn/Loader/index.js +1 -1
  24. package/dist/fn/Sheet.d.ts +3 -3
  25. package/dist/fn/Sheet.js +1 -1
  26. package/dist/fn/Snackbar.d.ts +3 -3
  27. package/dist/fn/Snackbar.js +1 -1
  28. package/dist/fn/Table/Data.d.ts +1 -1
  29. package/dist/fn/Table/Wrapper.d.ts +1 -1
  30. package/dist/fn/Table/Wrapper.js +1 -1
  31. package/dist/fn/Tooltips.d.ts +1 -1
  32. package/dist/index.d.ts +24 -24
  33. package/dist/mols/List.d.ts +6 -6
  34. package/dist/mols/List.js +1 -1
  35. package/dist/mols/Literal.d.ts +1 -1
  36. package/dist/mols/Literal.js +1 -1
  37. package/package.json +6 -6
  38. package/demo/next/src/app/(hooks)/useClientEffect.tsx +0 -83
  39. package/demo/next/src/app/(router)/designbook/page.tsx +0 -2891
  40. package/demo/next/src/app/(router)/page.tsx +0 -206
  41. package/demo/next/src/app/apis/test/route.ts +0 -9
  42. package/demo/next/src/app/layout.tsx +0 -26
  43. package/demo/next/src/server/app.ts +0 -42
  44. package/demo/next/src/server/fin.ts +0 -11
  45. package/demo/next/src/server/index.ts +0 -4
@@ -1,206 +0,0 @@
1
- "use client"
2
-
3
- import $$,{ UUID,Time,Filer } from 'jmini'
4
- import React,{
5
- useState,
6
- useEffect
7
- } from 'react'
8
-
9
- import '../../../../../dist/index'
10
- import {
11
- DarkMode,
12
- ThemeColor,
13
- ReactElement,
14
- Config,
15
- LaunchReactApp,
16
- ThemeColors,
17
- Box,
18
- Span,
19
- Grid,
20
- Flex,
21
- FAI,
22
- Img,
23
- Logo,
24
- Column,
25
- List,
26
- ListItem,
27
- Accordion,
28
- Row,
29
- Literal,
30
- PageViewController,
31
- SwipeView,
32
- TabBar,
33
- Plate,
34
- Table,
35
- Input,
36
- Button,
37
- Anchor,
38
- Label,
39
- Sheet,
40
- Snackbar,
41
- Tooltips,
42
- Tips,
43
- Loader,
44
- Effect,
45
- Cropper,
46
- RootViewController,
47
- StyleTags,
48
- Roundness,
49
- Card,
50
- } from '../../../../../dist/index'
51
-
52
-
53
- const SheetContent = () => {
54
- let sheetID = 'sheet1'
55
-
56
- let [ val_keyword,set_keyword ] = useState( '' )
57
-
58
- return <Sheet.Element
59
- type='topCenter'
60
- sheetID={ sheetID }
61
- isOpen
62
- key={ val_keyword }
63
- >
64
- <Sheet.Body>
65
- <Column padding={ 2 }>
66
- <Button.Sub>
67
- AAAA
68
- </Button.Sub>
69
- <Input.TextField.Email
70
- label="Keyword"
71
- value={ val_keyword }
72
- // onUpdateValidValue={ value => {
73
- // set_keyword( value )
74
- // } }
75
- />
76
- <Literal.Description>
77
- <Literal>result:</Literal>
78
- <Literal>{ val_keyword }</Literal>
79
- </Literal.Description>
80
- </Column>
81
- </Sheet.Body>
82
- </Sheet.Element>
83
-
84
- }
85
-
86
- let Page = () => {
87
- let select1: any = { test: 1 }
88
- let select2: any = { test: 2 }
89
- let select3: any = { test: 3 }
90
- // select1 = 1
91
- // select2 = 2
92
- // select3 = 3
93
-
94
- let [ val_selected,set_selected ] = useState<any>( !!select1 )
95
-
96
- // let [ val_value,set_value ] = useState( 'DFF' )
97
-
98
- let [ val_value,set_value ] = useState( '' )
99
- let [ val_data,set_data ] = useState<any>( null )
100
-
101
- let [ val_checked1,set_checked1 ] = useState( false )
102
- let [ val_checked2,set_checked2 ] = useState( true )
103
-
104
- let [ val_dataurl,set_dataurl ] = useState<string>( "" )
105
-
106
- useEffect( () => {
107
-
108
- Tooltips.notice( 'welcome to amotify!' )
109
-
110
- // $$.interval.once( () => {
111
- // set_selected( !select2 )
112
- // set_value( '1996/05/11' )
113
-
114
- // $$.interval.once( () => {
115
- // set_selected( !!select3 )
116
- // set_value( '2025/05/11' )
117
- // },1000,'test2' )
118
- // },1000,'test1' )
119
- },[] )
120
-
121
- let imgaeUrl = 'https://public.rakumeo.com/users/icon/O52y0KSQuVs0UJABut4q2uCs/R.jpeg'
122
-
123
- return <Plate
124
- padding={ 3 }
125
- >
126
- {/* <SheetContent /> */ }
127
- <Column gap={ 2 }
128
- >
129
- <Box
130
- padding={ 1 }
131
- >
132
- <Literal>
133
- val_value { val_value || "null" }
134
- </Literal>
135
-
136
- <Input.Time.Date
137
- form='test_form'
138
- name='testing'
139
- value={ val_value || void 0 }
140
- onUserAction={ async ( value,opt ) => {
141
- console.log(
142
- value,opt
143
- )
144
- } }
145
- />
146
- <Literal.Description>
147
- { $$.Stringify( val_data ) }
148
- </Literal.Description>
149
- </Box>
150
-
151
- <Button.Prime
152
- submitOption={ {
153
- formName: 'test_form',
154
- callback: form => {
155
- console.log( form )
156
- }
157
- } }
158
- >
159
- Submit
160
- </Button.Prime>
161
- <Button.Prime
162
- onClick={ () => {
163
- // Sheet.image( {
164
-
165
- // },[
166
- // imgaeUrl,
167
- // imgaeUrl,
168
- // imgaeUrl,
169
- // imgaeUrl,
170
- // imgaeUrl,
171
- // imgaeUrl,
172
- // imgaeUrl,
173
- // imgaeUrl,
174
- // imgaeUrl,
175
- // imgaeUrl,
176
- // imgaeUrl,
177
- // imgaeUrl,
178
- // imgaeUrl,
179
- // imgaeUrl,
180
- // ] )
181
- // return
182
-
183
- Cropper.openDialogNEdit( {
184
- use: '16:9',
185
- develops: [
186
- { size: 'L',maxSize: 3 * ( 1024 ** 2 ) },
187
- ],
188
- onProcessFinished: async files => {
189
- let file = files[ 0 ]
190
- if ( !file ) return
191
- let filder = await Filer( file )
192
- let dataurl = await filder.toDataURL()
193
- set_dataurl( dataurl )
194
- }
195
- } )
196
- } }
197
- >
198
- Image Picker
199
- </Button.Prime>
200
- </Column>
201
- </Plate>
202
- }
203
-
204
- import dynamic from 'next/dynamic'
205
- import { ok } from 'assert'
206
- export default dynamic( () => Promise.resolve( Page ),{ ssr: false } )
@@ -1,9 +0,0 @@
1
- "use server"
2
-
3
- import { Customware } from '@serverHooks/customware'
4
-
5
- export const GET = Customware.chain(
6
- Customware.verifyCsrfToken,
7
- Customware.verifyUserSession,
8
- Customware.getUploadMediaURL
9
- )
@@ -1,26 +0,0 @@
1
- import '../../../../dist/@styles/style.css'
2
-
3
- import { UseClientEffect } from '@hooks/useClientEffect'
4
-
5
- declare global {
6
- namespace JSX {
7
- interface IntrinsicElements {
8
- 'rakumeo-app': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>,HTMLDivElement>
9
- }
10
- }
11
- }
12
-
13
- export default function RootLayout( args: Readonly<{
14
- children: React.ReactNode
15
- }> ) {
16
- return <html lang="ja" id='html'>
17
- <body className={ 'AMOTIFY_be_body' }>
18
- <noscript>JavaScriptの使用が許可されていません。ブラウザ設定を開き、JavaScriptを有効にしてください。</noscript>
19
- <rakumeo-app id="RakumeoAppBody">
20
- <UseClientEffect>
21
- { args.children }
22
- </UseClientEffect>
23
- </rakumeo-app>
24
- </body>
25
- </html>
26
- }
@@ -1,42 +0,0 @@
1
- import $$,{ Fetcher,Server,Time,UUID } from 'jmini'
2
- import express from "express"
3
- import next from "next"
4
-
5
- import {
6
- launchLog
7
- } from '.'
8
-
9
- const nextApp = next( {
10
- dev: true
11
- } )
12
- let Application = Server( express() )
13
- .onPathRouter( () => express.Router() )
14
- // .use( express.json( { limit: '100mb' } ) )
15
- .use( express.urlencoded( { limit: '100mb',extended: true } ) )
16
-
17
- export { Application }
18
-
19
- $$.scope( async () => {
20
-
21
- await nextApp.prepare()
22
-
23
- try {
24
- Application
25
- .all( "*",( req,res,next ) => {
26
- let handler = nextApp.getRequestHandler()
27
- return handler( req,res )
28
- } )
29
-
30
- // ExceptionHandler( expressServer )
31
- } catch ( error ) {
32
- console.log( error )
33
- return
34
- }
35
- } )
36
-
37
- let port = 8000
38
- Application.listen( port )
39
- process.on( 'uncaughtException',err => {
40
- console.log( err )
41
- } )
42
- launchLog()
@@ -1,11 +0,0 @@
1
- import os from 'os'
2
- import { Server } from 'jmini'
3
-
4
- export const launchLog = () => {
5
- let port = 8000
6
- let local_ip = `http://${ Server.getLocalIP( os ) || "localhost" }:${ port }`,
7
- board = `\u001b[35m
8
- [ amotify.demo.next ]
9
- - ${ local_ip }${ new Array( 35 - local_ip.length ).join( ` ` ) }\u001b[39m`
10
- console.log( board )
11
- }
@@ -1,4 +0,0 @@
1
- require( 'dotenv' ).config()
2
-
3
- export * from './fin'
4
- import './app'