Skip to content

Commit

Permalink
Add base layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
yildirayunlu committed Jan 21, 2021
1 parent 167dd3a commit 81ec9cd
Show file tree
Hide file tree
Showing 12 changed files with 12,659 additions and 8,013 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
1 change: 1 addition & 0 deletions example/.eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/Users/yildirayunlu/Project/readmin/example/src/index.tsx":"1","/Users/yildirayunlu/Project/readmin/example/src/App.tsx":"2"},{"size":146,"mtime":1611239310225,"results":"3","hashOfConfig":"4"},{"size":202,"mtime":1611240402974,"results":"5","hashOfConfig":"4"},{"filePath":"6","messages":"7","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1ia97cd",{"filePath":"8","messages":"9","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/yildirayunlu/Project/readmin/example/src/index.tsx",[],"/Users/yildirayunlu/Project/readmin/example/src/App.tsx",[]]
16 changes: 8 additions & 8 deletions example/src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";

it('renders without crashing', () => {
const div = document.createElement('div')
ReactDOM.render(<App />, div)
ReactDOM.unmountComponentAtNode(div)
})
it("renders without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
});
17 changes: 10 additions & 7 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react'
import React from "react";

import { ExampleComponent } from 'readmin'
import 'readmin/dist/index.css'
import { Admin } from "readmin";

const App = () => {
return <ExampleComponent text="Create React Library Example 😄" />
}
const App: React.FC = () => {
return (
<Admin>
<span>Content</span>
</Admin>
);
};

export default App
export default App;
14 changes: 0 additions & 14 deletions example/src/index.css

This file was deleted.

10 changes: 4 additions & 6 deletions example/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import './index.css'
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";

import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'

ReactDOM.render(<App />, document.getElementById('root'))
ReactDOM.render(<App />, document.getElementById("root"));
25 changes: 21 additions & 4 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"compilerOptions": {
"outDir": "dist",
"module": "esnext",
"lib": ["dom", "esnext"],
"lib": [
"dom",
"esnext"
],
"moduleResolution": "node",
"jsx": "react",
"sourceMap": true,
Expand All @@ -15,8 +18,22 @@
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"target": "es5",
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true
},
"include": ["src"],
"exclude": ["node_modules", "build"]
"include": [
"src"
],
"exclude": [
"node_modules",
"build"
]
}
Loading

0 comments on commit 81ec9cd

Please sign in to comment.