Skip to content

Commit 43c7d27

Browse files
author
Hu Peng
committed
init
0 parents  commit 43c7d27

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+291268
-0
lines changed

.github/ISSUE_TEMPLATE.md

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<!--
2+
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
3+
4+
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
5+
-->
6+
7+
## I'm submitting a...
8+
9+
<!-- Check one of the following options with "x" -->
10+
<pre><code>
11+
[ ] Regression (a behavior that used to work and stopped working in a new release)
12+
[ ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
13+
[ ] Performance issue
14+
[ ] Feature request
15+
[ ] Documentation issue or request
16+
[ ] Other... Please describe:
17+
</code></pre>
18+
19+
## Current behavior
20+
21+
<!-- Describe how the issue manifests. -->
22+
23+
## Expected behavior
24+
25+
<!-- Describe what the desired behavior would be. -->
26+
27+
## Minimal reproduction of the problem with instructions
28+
29+
<!--
30+
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
31+
https://codesandbox.io/
32+
33+
* Step 1
34+
* Step 2
35+
* Step 3
36+
37+
-->
38+
39+
## What is the motivation / use case for changing the behavior?
40+
41+
<!-- Describe the motivation or the concrete use case. -->
42+
43+
## Environment
44+
45+
<pre><code>
46+
Libs:
47+
- react version: X.Y.Z
48+
- https://www.npmjs.com/package/react-tailwindcss-ui version: X.Y.Z
49+
<!-- Check whether this is still an issue in the most recent React version -->
50+
51+
Browser:
52+
- [ ] Chrome (desktop) version XX
53+
- [ ] Chrome (Android) version XX
54+
- [ ] Chrome (iOS) version XX
55+
- [ ] Firefox version XX
56+
- [ ] Safari (desktop) version XX
57+
- [ ] Safari (iOS) version XX
58+
- [ ] IE version XX
59+
- [ ] Edge version XX
60+
61+
For Tooling issues:
62+
- Node version: XX <!-- run `node --version` -->
63+
- Platform: <!-- Mac, Linux, Windows -->
64+
65+
Others:
66+
<!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... -->
67+
</code></pre>

.github/ISSUE_TEMPLATE/bug_report.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## PR Checklist
2+
3+
Please check if your PR fulfills the following requirements:
4+
5+
- [ ] Tests for the changes have been added (for bug fixes / features)
6+
- [ ] Docs have been added / updated (for bug fixes / features)
7+
8+
## PR Type
9+
10+
What kind of change does this PR introduce?
11+
12+
<!-- Please check the one that applies to this PR using "x". -->
13+
14+
```
15+
[ ] Bugfix
16+
[ ] Feature
17+
[ ] Code style update (formatting, local variables)
18+
[ ] Refactoring (no functional changes, no api changes)
19+
[ ] Build related changes
20+
[ ] CI related changes
21+
[ ] Documentation content changes
22+
[ ] Other... Please describe:
23+
```
24+
25+
## What is the current behavior?
26+
27+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
28+
29+
Issue Number: N/A
30+
31+
## What is the new behavior?
32+
33+
## Does this PR introduce a breaking change?
34+
35+
```
36+
[ ] Yes
37+
[ ] No
38+
```
39+
40+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
41+
42+
## Other information

.github/workflows/codeql-analysis.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '41 16 * * 2'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: [ 'javascript' ]
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v1
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v1
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
57+
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
61+
62+
#- run: |
63+
# make bootstrap
64+
# make release
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v1

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.idea
7+
.pnp.js
8+
9+
# testing
10+
/coverage
11+
12+
# production
13+
/build
14+
/dist
15+
16+
# misc
17+
.DS_Store
18+
.env.local
19+
.env.development.local
20+
.env.test.local
21+
.env.production.local
22+
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
storybook-static

.npmignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# storybook
15+
.storybook
16+
/storybook-static
17+
dist/types/stories
18+
dist/types/setupTests.d.ts
19+
20+
# misc
21+
.DS_Store
22+
.env.local
23+
.env.development.local
24+
.env.test.local
25+
.env.production.local
26+
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*
30+
31+
.github
32+
/public
33+
/postcss.config.js
34+
/rollup.config.js
35+
/rollup.config.ts
36+
/stylelint.config.ts
37+
/tsconfig.json
38+
/yarn.lock
39+
/tailwind.config.js

.storybook/Layout.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
import "./exportedStyles";
3+
import "./customStyles";
4+
import "./story";
5+
6+
const Layout = ({ children }) => {
7+
return <div className="px-5 py-5">{children}</div>;
8+
};
9+
export default Layout;

.storybook/customStyles.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import buildCSS from "./styles.css";
2+
import realCSS from "../src/styles.css";
3+
const customStyles = process.env.NODE_ENV === "production" ? buildCSS : realCSS;
4+
export default customStyles;

.storybook/exportedStyles.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import buildCSS from "./tailwind.css";
2+
import realCSS from "../src/tailwind.css";
3+
const exportedStyles = process.env.NODE_ENV === "production" ? buildCSS : realCSS;
4+
export default exportedStyles;

.storybook/main.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const path = require("path");
2+
3+
module.exports = {
4+
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
5+
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/preset-create-react-app"],
6+
webpackFinal: async (config, { configType }) => {
7+
config.module.rules.push({
8+
test: /\,css&/,
9+
use: [
10+
{
11+
loader: "postcss-loader",
12+
options: {
13+
sourceMap: true,
14+
ident: "postcss",
15+
plugins: [require("tailwindcss"), require("autoprefixer")],
16+
},
17+
},
18+
],
19+
include: path.resolve(__dirname, "../"),
20+
});
21+
config.resolve.extensions.push(".ts", ".tsx");
22+
return config;
23+
},
24+
};

.storybook/manager-head.html

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<title>REAVIZ</title>
2+
<meta name="description" content="Tailwind UIKIT" />
3+
<meta property="og:site_name" content="Tailwind UIKIT" />
4+
<link rel="canonical" href="https://github.com/reactZone/react-tailwindcss-ui"/>
5+
6+
<!-- Bots -->
7+
<meta name="robots" content="index,follow">
8+
<meta name="googlebot" content="index,follow">
9+
10+
<!-- Favs -->
11+
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
12+
<meta name="msapplication-TileColor" content="#2b5797">
13+
<meta name="theme-color" content="#22272b">
14+
15+
<style>
16+
body {
17+
font-family: 'Lato', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
18+
font-weight: 400;
19+
font-size: 14px;
20+
line-height: 1.4;
21+
-webkit-font-smoothing: antialiased;
22+
-moz-osx-font-smoothing: grayscale;
23+
background: rgb(51, 51, 51);
24+
25+
--color-background: rgb(51, 51, 51);
26+
--color-on-background:#fff;
27+
28+
--color-tooltip:rgba(0,5,11,0.9);
29+
--color-on-tooltip: #fff;
30+
31+
--color-handle: #67c2e4;
32+
--color-handle-drag: #2c343a;
33+
}
34+
</style>

.storybook/manager.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { addons } from "@storybook/addons";
2+
import theme from "./theme";
3+
4+
addons.setConfig({
5+
theme: theme,
6+
});

0 commit comments

Comments
 (0)