-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,450 changed files
with
57,375 additions
and
13,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
} | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
|
||
import themes from 'devextreme/ui/themes'; | ||
import App from './App.tsx'; | ||
|
||
themes.initialized(() => { | ||
ReactDOM.render( | ||
<App />, | ||
document.getElementById('app'), | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
import React from 'react'; | ||
import Box, { Item } from 'devextreme-react/box'; | ||
|
||
const App = () => ( | ||
<React.Fragment> | ||
<Box | ||
direction="row" | ||
width="100%" | ||
height={75} | ||
> | ||
<Item ratio={1}> | ||
<div className="rect demo-dark">ratio = 1</div> | ||
</Item> | ||
<Item ratio={2}> | ||
<div className="rect demo-light">ratio = 2</div> | ||
</Item> | ||
<Item ratio={1}> | ||
<div className="rect demo-dark">ratio = 1</div> | ||
</Item> | ||
</Box> | ||
<br /> | ||
<Box | ||
direction="row" | ||
width="100%" | ||
height={75} | ||
> | ||
<Item | ||
ratio={0} | ||
baseSize={150} | ||
> | ||
<div className="rect demo-dark">150px</div> | ||
</Item> | ||
<Item ratio={1}> | ||
<Box | ||
className="demo-light" | ||
direction="row" | ||
width="100%" | ||
height={75} | ||
align="center" | ||
crossAlign="center" | ||
> | ||
<Item | ||
ratio={0} | ||
baseSize={50} | ||
> | ||
<div className="small"></div> | ||
</Item> | ||
<Item | ||
ratio={0} | ||
baseSize={50} | ||
> | ||
<div className="small"></div> | ||
</Item> | ||
<Item | ||
ratio={0} | ||
baseSize={50} | ||
> | ||
<div className="small"></div> | ||
</Item> | ||
</Box> | ||
</Item> | ||
<Item | ||
ratio={0} | ||
baseSize="10%" | ||
> | ||
<div className="rect demo-dark">10%</div> | ||
</Item> | ||
</Box> | ||
<br /> | ||
<Box | ||
direction="col" | ||
width="100%" | ||
height={250} | ||
> | ||
<Item ratio={1}> | ||
<div className="rect demo-dark header">Header</div> | ||
</Item> | ||
<Item | ||
ratio={2} | ||
baseSize={0} | ||
> | ||
<Box | ||
direction="row" | ||
width="100%" | ||
height={125} | ||
> | ||
<Item ratio={1}> | ||
<div className="rect demo-dark">Left Bar</div> | ||
</Item> | ||
<Item ratio={1}> | ||
<div className="rect demo-light">Content</div> | ||
</Item> | ||
<Item ratio={1}> | ||
<div className="rect demo-dark">Right Bar</div> | ||
</Item> | ||
</Box> | ||
</Item> | ||
<Item ratio={1}> | ||
<div className="rect demo-dark footer">Footer</div> | ||
</Item> | ||
</Box> | ||
</React.Fragment> | ||
); | ||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>DevExtreme Demo</title> | ||
<meta | ||
http-equiv="X-UA-Compatible" | ||
content="IE=edge" | ||
/> | ||
<meta | ||
http-equiv="Content-Type" | ||
content="text/html; charset=utf-8" | ||
/> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="../../../../../node_modules/devextreme-dist/css/dx.light.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="styles.css" | ||
/> | ||
|
||
<script src="../../../../../node_modules/core-js/client/shim.min.js"></script> | ||
<script src="../../../../../node_modules/systemjs/dist/system.js"></script> | ||
<script | ||
type="text/javascript" | ||
src="config.js" | ||
></script> | ||
<script type="text/javascript"> | ||
System.import("./index.js"); | ||
</script> | ||
</head> | ||
|
||
<body class="dx-viewport"> | ||
<div class="demo-container"> | ||
<div id="app"></div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import themes from 'devextreme/ui/themes'; | ||
import App from './App.js'; | ||
|
||
themes.initialized(() => { | ||
ReactDOM.render(<App />, document.getElementById('app')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.rect { | ||
text-align: center; | ||
font-size: 30px; | ||
padding-top: 10px; | ||
height: 100%; | ||
} | ||
|
||
.demo-light { | ||
background: rgba(245, 229, 166, 0.5); | ||
} | ||
|
||
.demo-dark { | ||
background: rgba(148, 215, 199, 0.5); | ||
} | ||
|
||
.demo-dark.header { | ||
background: rgba(243, 158, 108, 0.5); | ||
} | ||
|
||
.demo-dark.footer { | ||
background: rgba(123, 155, 207, 0.5); | ||
} | ||
|
||
.small { | ||
height: 50px; | ||
border: 1px solid lightgray; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from 'react'; | ||
import { ButtonGroup, ButtonGroupTypes } from 'devextreme-react/button-group'; | ||
import notify from 'devextreme/ui/notify'; | ||
import { alignments, fontStyles } from './data.ts'; | ||
|
||
const selectedItemKeys = ['left']; | ||
|
||
const itemClick = (e: ButtonGroupTypes.ItemClickEvent) => { | ||
notify({ message: `The "${e.itemData.hint}" button was clicked`, width: 320 }, 'success', 1000); | ||
}; | ||
|
||
export default function App() { | ||
return ( | ||
<div> | ||
<div className="buttongroups-container"> | ||
<ButtonGroup | ||
items={alignments} | ||
keyExpr="alignment" | ||
stylingMode="outlined" | ||
defaultSelectedItemKeys={selectedItemKeys} | ||
onItemClick={itemClick} | ||
/> | ||
<ButtonGroup | ||
items={fontStyles} | ||
keyExpr="style" | ||
stylingMode="outlined" | ||
selectionMode="multiple" | ||
onItemClick={itemClick} | ||
/> | ||
</div> | ||
<div className="buttongroups-container"> | ||
<ButtonGroup | ||
items={alignments} | ||
keyExpr="alignment" | ||
stylingMode="text" | ||
defaultSelectedItemKeys={selectedItemKeys} | ||
onItemClick={itemClick} | ||
/> | ||
<ButtonGroup | ||
className="multiple-selection-styling-mode" | ||
items={fontStyles} | ||
keyExpr="style" | ||
stylingMode="text" | ||
selectionMode="multiple" | ||
onItemClick={itemClick} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
|
||
import App from './App.tsx'; | ||
|
||
ReactDOM.render( | ||
<App />, | ||
document.getElementById('app'), | ||
); |
Oops, something went wrong.