Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Smilefounder committed Nov 19, 2018
1 parent b61713c commit 5ba3cfb
Show file tree
Hide file tree
Showing 5,413 changed files with 193,974 additions and 193,906 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions git-reset-hard.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
git checkout master
git branch new-branch-to-save-current-commits
git fetch --all
git reset --hard origin/master
64 changes: 64 additions & 0 deletions mix2swa.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
cd src
#(Get-Content Swastika-IO.sln) | ForEach-Object { $_ -replace "Mix", "Sio" } | Set-Content Swastika-IO.sln
#Get-ChildItem -Path *Mix*.csproj* -File -Recurse | ForEach-Object -Process {
# (Get-Content -LiteralPath $_.FullName) | ForEach-Object { $_ -replace "Mix", "Sio" } | Set-Content $_.FullName
# Rename-item -LiteralPath $_.FullName -NewName ($_.name -replace "Mix","Sio") -Verbose
#}

Get-ChildItem -Path *.sln -File -Recurse | ForEach-Object -Process {
(Get-Content -LiteralPath $_.FullName) | ForEach-Object { $_ -replace "Mix", "Sio" } | Set-Content $_.FullName
Rename-item -LiteralPath $_.FullName -NewName ($_.name -replace "Mix","Sio") -Verbose
}
Get-ChildItem -Path *.cs -File -Recurse | ForEach-Object -Process {
(Get-Content -LiteralPath $_.FullName) | ForEach-Object { $_ -replace "Mix", "Sio" } | Set-Content $_.FullName
Rename-item -LiteralPath $_.FullName -NewName ($_.name -replace "Mix","Sio") -Verbose
}
Get-ChildItem -Path *.cshtml -File -Recurse | ForEach-Object -Process {
(Get-Content -LiteralPath $_.FullName) | ForEach-Object { $_ -replace "Mix", "Sio" } | Set-Content $_.FullName
Rename-item -LiteralPath $_.FullName -NewName ($_.name -replace "Mix","Sio") -Verbose
}
Get-ChildItem -Path *.csproj -File -Recurse | ForEach-Object -Process {
(Get-Content -LiteralPath $_.FullName) | ForEach-Object { $_ -replace "Mix", "Sio" } | Set-Content $_.FullName
Rename-item -LiteralPath $_.FullName -NewName ($_.name -replace "Mix","Sio") -Verbose
}

Get-ChildItem -Path *.json -File -Recurse | ForEach-Object -Process {
(Get-Content -LiteralPath $_.FullName) | ForEach-Object { $_ -replace "Mix", "Sio" } | Set-Content $_.FullName
Rename-item -LiteralPath $_.FullName -NewName ($_.name -replace "Mix","Sio") -Verbose
}
Get-ChildItem -Path *.html -File -Recurse | ForEach-Object -Process {
(Get-Content -LiteralPath $_.FullName) | ForEach-Object { $_ -replace "Mix", "Sio" } | Set-Content $_.FullName
Rename-item -LiteralPath $_.FullName -NewName ($_.name -replace "Mix","Sio") -Verbose
}
#Get-ChildItem -Path Mix* -Directory | ForEach-Object -Process {
# Rename-item -LiteralPath $_.FullName -NewName ($_.Name -replace "Mix","Sio") -Verbose
#}

$OldText = "Mix"
$NewText = "Sio"

Get-ChildItem $Path -Recurse | %{$_.FullName} |
Sort-Object -Property Length -Descending |
% {
Write-Host $_
$Item = Get-Item $_
$PathRoot = $Item.FullName | Split-Path
$OldName = $Item.FullName | Split-Path -Leaf
$NewName = $OldName -replace $OldText, $NewText
$NewPath = $PathRoot | Join-Path -ChildPath $NewName
if (!$Item.PSIsContainer -and $Extension -contains $Item.Extension) {
(Get-Content $Item) | % {
#Write-Host $_
$_ -replace $OldText, $NewText
} | Set-Content $Item
}
if ($OldName.Contains($OldText)) {
Rename-Item -LiteralPath $Item.FullName -NewName $NewPath
#Write-Host $NewPath
}
}

#Get-ChildItem -recurse -name | ForEach-Object { Rename-Item $_ $_.replace("Mix","Sio") }

# Get-ChildItem -Path *ESX* -Directory | ForEach-Object -Process {Rename-item -Path $_.Name -NewName ($_.name -replace "ESX","VMWARE") -Verbose}

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "css-bundle",
"version": "1.0.0",
"description": "Simple node project to run stylelint from SonarCSS",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "LGPL-3.0",
"dependencies": {
"stylelint": "9.2.1"
}
}
{
"name": "css-bundle",
"version": "1.0.0",
"description": "Simple node project to run stylelint from SonarCSS",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "LGPL-3.0",
"dependencies": {
"stylelint": "9.2.1"
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"rules":{"block-no-empty":true,"string-no-newline":true,"comment-no-empty":true,"function-linear-gradient-no-nonstandard-direction":true,"media-feature-name-no-unknown":true,"color-no-invalid-hex":true,"no-descending-specificity":true,"font-family-no-duplicate-names":true,"no-duplicate-at-import-rules":true,"declaration-block-no-duplicate-properties":[true,{"ignore":["consecutive-duplicates-with-different-values"]}],"no-empty-source":true,"selector-type-no-unknown":true,"at-rule-no-unknown":[true,{"ignoreAtRules":["at-root","content","debug","each","else","error","for","function","if","include","mixin","return","warn","while"]}],"no-duplicate-selectors":true,"font-family-no-missing-generic-family-keyword":true,"no-extra-semicolons":true,"no-invalid-double-slash-comments":true,"selector-pseudo-element-no-unknown":true,"selector-pseudo-class-no-unknown":true,"keyframe-declaration-no-important":true,"function-calc-no-unspaced-operator":true,"property-no-unknown":true,"declaration-block-no-shorthand-property-overrides":true,"unit-no-unknown":true}}
{"rules":{"block-no-empty":true,"string-no-newline":true,"comment-no-empty":true,"function-linear-gradient-no-nonstandard-direction":true,"media-feature-name-no-unknown":true,"color-no-invalid-hex":true,"no-descending-specificity":true,"font-family-no-duplicate-names":true,"no-duplicate-at-import-rules":true,"declaration-block-no-duplicate-properties":[true,{"ignore":["consecutive-duplicates-with-different-values"]}],"no-empty-source":true,"selector-type-no-unknown":true,"at-rule-no-unknown":[true,{"ignoreAtRules":["at-root","content","debug","each","else","error","for","function","if","include","Sioin","return","warn","while"]}],"no-duplicate-selectors":true,"font-family-no-missing-generic-family-keyword":true,"no-extra-semicolons":true,"no-invalid-double-slash-comments":true,"selector-pseudo-element-no-unknown":true,"selector-pseudo-class-no-unknown":true,"keyframe-declaration-no-important":true,"function-calc-no-unspaced-operator":true,"property-no-unknown":true,"declaration-block-no-shorthand-property-overrides":true,"unit-no-unknown":true}}
92 changes: 46 additions & 46 deletions src/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/Mix.Cms.Api/bin/Debug/netcoreapp2.1/Mix.Cms.Api.dll",
"args": [],
"cwd": "${workspaceFolder}/Mix.Cms.Api",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart",
"launchBrowser": {
"enabled": true,
"args": "${auto-detect-url}",
"windows": {
"command": "cmd.exe",
"args": "/C start ${auto-detect-url}"
},
"osx": {
"command": "open"
},
"linux": {
"command": "xdg-open"
}
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/Sio.Cms.Api/bin/Debug/netcoreapp2.1/Sio.Cms.Api.dll",
"args": [],
"cwd": "${workspaceFolder}/Sio.Cms.Api",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart",
"launchBrowser": {
"enabled": true,
"args": "${auto-detect-url}",
"windows": {
"command": "cmd.exe",
"args": "/C start ${auto-detect-url}"
},
"osx": {
"command": "open"
},
"linux": {
"command": "xdg-open"
}
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
30 changes: 15 additions & 15 deletions src/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Mix.Cms.Api/Mix.Cms.Api.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Sio.Cms.Api/Sio.Cms.Api.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
23 changes: 0 additions & 23 deletions src/Mix.Cms.Api/Dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions src/Mix.Cms.Api/Mix.Cms.Api.csproj

This file was deleted.

24 changes: 0 additions & 24 deletions src/Mix.Cms.Api/Program.cs

This file was deleted.

35 changes: 0 additions & 35 deletions src/Mix.Cms.Api/Properties/launchSettings.json

This file was deleted.

47 changes: 0 additions & 47 deletions src/Mix.Cms.Api/Startup.cs

This file was deleted.

9 changes: 0 additions & 9 deletions src/Mix.Cms.Api/appsettings.Development.json

This file was deleted.

Loading

0 comments on commit 5ba3cfb

Please sign in to comment.