Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP-1302 | Make JTable sortable in edit inventory #2041

Merged
merged 14 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bundle/language_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1793,6 +1793,7 @@ angal.userbrowser.step2.pleaserepeatthenewpassword.label
angal.userbrowser.theadminusercannotbedeleted.msg = The "admin" user cannot be deleted.
angal.userbrowser.thepasswordhasbeenchanged.msg = The password has been changed.
angal.userbrowser.theuseralreadyexists.fmt.msg = The user "{0}" already exists.
angal.userbrowser.theusernamecontainsinvalidcharacters.msg = The user name must contain only a-z, 0-9, dash, period and underscore characters.
angal.userbrowser.title = User Browser
angal.userbrowser.user.col = User
angal.vaccine.deletevaccine.fmt.msg = Delete vaccine: {0}?
Expand Down
9 changes: 6 additions & 3 deletions oh.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,11 @@ function write_api_config_file {
# generate OH API token and save to settings file
$JWT_TOKEN_SECRET=( -join ($(for($i=0; $i -lt 64; $i++) { ((65..90)+(97..122)+(".")+("!")+("?")+("&") | Get-Random | % {[char]$_}) })) )
Write-Host "Writing OH API configuration file -> $API_SETTINGS..."
(Get-Content "$OH_PATH/$OH_DIR/rsc/$API_SETTINGS.dist").replace("JWT_TOKEN_SECRET","$JWT_TOKEN_SECRET") | Set-Content "$OH_PATH/$OH_DIR/rsc/$API_SETTINGS"
(Get-Content "$OH_PATH/$OH_DIR/rsc/$API_SETTINGS").replace("OH_API_PID","$OH_API_PID") | Set-Content "$OH_PATH/$OH_DIR/rsc/$API_SETTINGS"
(Get-Content "$OH_PATH/$OH_DIR/rsc/$API_SETTINGS.dist") `
-replace "JWT_TOKEN_SECRET", "$JWT_TOKEN_SECRET" `
-replace "OH_API_PID", "$OH_API_PID" `
-replace "API_HOST:API_PORT", "localhost:8080" `
| Set-Content "$OH_PATH/$OH_DIR/rsc/$API_SETTINGS"
}
}

Expand Down Expand Up @@ -1039,7 +1042,7 @@ function write_config_files {
(Get-Content "$OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS").replace("DBNAME","$DATABASE_NAME") | Set-Content "$OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS"

# direct creation of $DATABASE_SETTINGS - deprecated
#Set-Content -Path $OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS -Value "jdbc.url=jdbc:mysql://"$DATABASE_SERVER":$DATABASE_PORT/$DATABASE_NAME"
#Set-Content -Path $OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS -Value "jdbc.url=jdbc:mariadb://"$DATABASE_SERVER":$DATABASE_PORT/$DATABASE_NAME"
#Add-Content -Path $OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS -Value "jdbc.username=$DATABASE_USER"
#Add-Content -Path $OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS -Value "jdbc.password=$DATABASE_PASSWORD"
}
Expand Down
5 changes: 4 additions & 1 deletion oh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,10 @@ function write_api_config_file {
# JWT_TOKEN_SECRET=`openssl rand -base64 64 | xargs`
JWT_TOKEN_SECRET=`LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | head -c 66`
echo "Writing OH API configuration file -> $API_SETTINGS..."
sed -e "s/JWT_TOKEN_SECRET/"$JWT_TOKEN_SECRET"/g" -e "s&OH_API_PID&"$OH_API_PID"&g" ./$OH_DIR/rsc/$API_SETTINGS.dist > ./$OH_DIR/rsc/$API_SETTINGS
sed -e "s/JWT_TOKEN_SECRET/"$JWT_TOKEN_SECRET"/g" \
-e "s&OH_API_PID&"$OH_API_PID"&g" \
-e "s/API_HOST:API_PORT/localhost:8080/g" \
./$OH_DIR/rsc/$API_SETTINGS.dist > ./$OH_DIR/rsc/$API_SETTINGS
fi
}

Expand Down
6 changes: 5 additions & 1 deletion ohmac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ function write_api_config_file {
JWT_TOKEN_SECRET=`LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | head -c 66`

echo "Writing OH API configuration file -> $API_SETTINGS..."
sed -i '' -e "s/JWT_TOKEN_SECRET/"$JWT_TOKEN_SECRET"/g" -e "s&OH_API_PID&"$OH_API_PID"&g" $SET_FILE.dist
sed -i '' \
-e "s/JWT_TOKEN_SECRET/$JWT_TOKEN_SECRET/g" \
-e "s/API_HOST:API_PORT/localhost:8080/g" \
-e "s&OH_API_PID&$OH_API_PID&g" \
$SET_FILE.dist
cp -f $SET_FILE.dist $SET_FILE
fi
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.1</version>
<version>3.4.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -296,7 +296,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.13</version>
<version>2.0.16</version>
</dependency>
<dependency>
<groupId>org.imgscalr</groupId>
Expand Down
2 changes: 1 addition & 1 deletion rsc/database.properties.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
jdbc.url=jdbc:mysql://DBSERVER:DBPORT/DBNAME
jdbc.url=jdbc:mariadb://DBSERVER:DBPORT/DBNAME
jdbc.username=DBUSER
jdbc.password=DBPASS
2 changes: 2 additions & 0 deletions rsc/sms.properties.dist
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ skebby-gateway-service.ribbon.base-url=https://api.skebby.it:443
# USER_KEY and ACCESS_TOKEN avoids the login call every time we need to send sms
skebby-gateway-service.accessToken=
skebby-gateway-service.userKey=
# message_type: GP for Classic+, TI for Classic, SI for Basic (default)
#skebby-gateway-service.messageType=


##################################################################
Expand Down
Loading