mirror of
https://github.com/immich-app/immich.git
synced 2025-02-11 01:18:24 -05:00
docs: diff highlighting (#6604)
This commit is contained in:
parent
4fa7005a24
commit
61bb52ac11
2 changed files with 3 additions and 3 deletions
|
@ -15,13 +15,13 @@ This way works by downloading a JSON file that contains a list of all the files
|
||||||
|
|
||||||
## Script for Linux based systems:
|
## Script for Linux based systems:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
awk -F\" '/entityId/ {print $4}' orphans.json | while read line; do curl --location --request DELETE 'http://YOUR_IP_HERE:2283/api/asset' --header 'Content- Type: application/json' --header 'x-api-key: YOUR_API_KEY_HERE' --data '{ "force": true, "ids": ["'"$line"'"]}';done
|
awk -F\" '/entityId/ {print $4}' orphans.json | while read line; do curl --location --request DELETE 'http://YOUR_IP_HERE:2283/api/asset' --header 'Content- Type: application/json' --header 'x-api-key: YOUR_API_KEY_HERE' --data '{ "force": true, "ids": ["'"$line"'"]}';done
|
||||||
```
|
```
|
||||||
|
|
||||||
## Script for the Windows system (run through PowerShell):
|
## Script for the Windows system (run through PowerShell):
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
Get-Content orphans.json | Select-String -Pattern 'entityId' | ForEach-Object {
|
Get-Content orphans.json | Select-String -Pattern 'entityId' | ForEach-Object {
|
||||||
$line = $_ -split '"' | Select-Object -Index 3
|
$line = $_ -split '"' | Select-Object -Index 3
|
||||||
$body = [pscustomobject]@{
|
$body = [pscustomobject]@{
|
||||||
|
|
|
@ -166,7 +166,7 @@ const config = {
|
||||||
prism: {
|
prism: {
|
||||||
theme: prism.themes.github,
|
theme: prism.themes.github,
|
||||||
darkTheme: prism.themes.dracula,
|
darkTheme: prism.themes.dracula,
|
||||||
additionalLanguages: ['sql'],
|
additionalLanguages: ['sql', 'diff', 'bash', 'powershell', 'nginx'],
|
||||||
},
|
},
|
||||||
image: 'overview/img/feature-panel.png',
|
image: 'overview/img/feature-panel.png',
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue