Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Purging all git history before going open source.
  • Loading branch information
sudoole committed Dec 2, 2020
0 parents commit 9de0820
Show file tree
Hide file tree
Showing 558 changed files with 74,112 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Dockerfile

**/bin/
**/obj/
**/out/
**/build/

**/node_modules

.DS_Store
48 changes: 48 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This is the top-most .editorconfig file; do not search in parent directories for .editorconfig files.
root = true

[*]
charset = UTF-8
end_of_line = LF
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 180

[*.md]
trim_trailing_whitespace = false
max_line_length = off

[*.cs]
csharp_space_after_cast = true
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
indent_size = 4
csharp_new_line_before_else = true

[*.sln]
end_of_line = CRLF
max_line_length = off
indent_style = tab
indent_size = 1

[{ApiClient.cs,yarn.lock,*.md}]
max_line_length = off
indent_size = off

[*.DotSettings]
indent_style = tab
insert_final_newline = false
max_line_length = off

[.gitkeep]
insert_final_newline = false
37 changes: 37 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"react",
"@typescript-eslint"
],
"env": {
"browser": true,
"node": true,
"jasmine": true,
"jest": true,
"es6": true
},
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-unused-vars": ["error"],
"no-console": 1,
"no-empty-pattern": 0,
"no-unused-vars": "off",
"react/prop-types": 1
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"parser": "@typescript-eslint/parser"
}
43 changes: 43 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Autodetect text files
* text=auto

# Do not change these
*.jpg binary
*.png binary
*.gif binary

# Normalize these files
*.cs text diff=csharp
*.json text
*.yaml text
*.html text diff=html
*.css text diff=css
*.scss text
*.js text

# Make sure npm package files use LF
package.json text eol=lf

# Merge rules for certain files
*.csproj text merge=union
*.vbproj text merge=union
*.fsproj text merge=union
*.dbproj text merge=union
*.sln text eol=crlf merge=union

# Treat as text files
.gitattributes text
.gitignore text
*.txt text
*.md text
*.config text
*.xml text
VERSION text
LICENSE text

# Special Swagger related files
ApiClient.cs binary
swagger.json binary

# yarn.lock
yarn.lock -diff merge=ours
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report---.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: "Bug report \U0001F41B"
about: Create a report to help us improve
title: "\U0001F41B"
labels: bug
assignees: ''

---

**:bug: Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation----.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: "Documentation \U0001F4D8 "
about: Use this template for documentation issues
title: "\U0001F4D8"
labels: documentation
assignees: ''

---

**Documentation Is:📘 **

<!-- Please place an x (no spaces!) in all [ ] that apply -->

- [ ] Missing
- [ ] Needed
- [ ] Confusing
- [ ] Not Sure?

**Please Explain in Detail**

A clear and concise description of what the problem is.

**Your Proposal for Changes**

A clear and concise description of how you would like the documentation to be.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Enhancement
about: Used for improvements such as code refactor, added tests etc
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request---.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "Feature request \U0001F4A1"
about: Suggest an idea for this project
title: "\U0001F4A1"
labels: feature request
assignees: ''

---

**💡 Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/generic-issue---.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "Generic issue \U0001F449"
about: Use this template to create issues where none of the other templates apply
title: "\U0001F449"
labels: question
assignees: ''

---

**👉 Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: "@date-io/moment"
versions:
- ">= 2.a"
- "< 3"
- package-ecosystem: nuget
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Test
on:
pull_request:
branches:
- master

jobs:
backend:
name: Backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- name: Build with dotnet
run: dotnet build /warnaserror --configuration Release
- name: Test with dotnet
run: dotnet test ./Tests/WitsmlExplorer.Api.Tests/WitsmlExplorer.Api.Tests.csproj --configuration Release

frontend:
name: Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: yarn
working-directory: ./Src/WitsmlExplorer.Frontend
- name: Linting
run: yarn eslint .
working-directory: ./Src/WitsmlExplorer.Frontend
- name: Prettier
run: npx prettier --check .
- name: Build
run: yarn build
working-directory: ./Src/WitsmlExplorer.Frontend
- name: Test
run: yarn test
working-directory: ./Src/WitsmlExplorer.Frontend
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Rider settings
.idea/

# VS Code settings
.vs/
.vscode/

# User-specific files
*.user

# Build results
bin/
obj/
Src/**/obj
Src/**/out/

# Config file
Tests/Witsml.Tests/config.json
**/secrets.json
config.json

# Node output
node_modules/

# VS Code settings that should be shared
!.vscode/settings.json

# We ignore package-lock.json since we are using yarn
package-lock.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Ignore artifacts:
Tests
Src/Witsml
Src/WitsmlExplorer.Api
Src/WitsmlExplorer.Frontend/build
Src/WitsmlExplorer.Frontend/obj

*.md
*.yml
.prettierignore
.github
.eslintrc.json
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "none",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"quoteProps": "consistent"
}
Loading

0 comments on commit 9de0820

Please sign in to comment.