[release] v0.8.2

This commit is contained in:
Yann Stepienik 2023-06-22 14:14:51 +01:00
parent c3dd4f61f2
commit b27746f0ba
3 changed files with 23 additions and 9 deletions

View file

@ -1,5 +1,7 @@
## version 0.8.1 ## version 0.8.1 -> 0.8.2
- App store image size issue - App store image size issue
- Add installer hostname prefix/suffix
- Fix issue with inconsistent password when installing from the market
## Version 0.8.0 ## Version 0.8.0
- Custmizable homepage / theme colors - Custmizable homepage / theme colors

View file

@ -94,6 +94,22 @@ const DockerComposeImport = ({ refresh, dockerComposeInit, installerInit, defaul
const [context, setContext] = useState({}); const [context, setContext] = useState({});
const [installer, setInstaller] = useState(installerInit); const [installer, setInstaller] = useState(installerInit);
const [config, setConfig] = useState({}); const [config, setConfig] = useState({});
const [passwords, setPasswords] = useState([
randomString(24),
randomString(24),
randomString(24),
randomString(24)
]);
const resetPassword = () => {
setPasswords([
randomString(24),
randomString(24),
randomString(24),
randomString(24)
]);
}
function refreshConfig() { function refreshConfig() {
API.config.get().then((res) => { API.config.get().then((res) => {
@ -335,12 +351,7 @@ const DockerComposeImport = ({ refresh, dockerComposeInit, installerInit, defaul
ServiceName: serviceName, ServiceName: serviceName,
Hostnames: hostnames, Hostnames: hostnames,
Context: context, Context: context,
Passwords: [ Passwords: passwords,
randomString(24),
randomString(24),
randomString(24),
randomString(24)
],
CPU_ARCH: API.CPU_ARCH, CPU_ARCH: API.CPU_ARCH,
CPU_AVX: API.CPU_AVX, CPU_AVX: API.CPU_AVX,
DefaultDataPath: (config && config.DockerConfig && config.DockerConfig.DefaultDataPath) || "/usr", DefaultDataPath: (config && config.DockerConfig && config.DockerConfig.DefaultDataPath) || "/usr",
@ -358,7 +369,7 @@ const DockerComposeImport = ({ refresh, dockerComposeInit, installerInit, defaul
if (route.useHost) { if (route.useHost) {
let newRoute = Object.assign({}, route); let newRoute = Object.assign({}, route);
if (route.useHost === true) { if (route.useHost === true) {
newRoute.host = getHostnameFromName(key + (routeId > 0 ? '-' + routeId : '')) newRoute.host = (newRoute.hostPrefix || '') + getHostnameFromName(key + (routeId > 0 ? '-' + routeId : '')) + (newRoute.hostSuffix || '');
} }
if(!newHostnames[key]) newHostnames[key] = {}; if(!newHostnames[key]) newHostnames[key] = {};
@ -467,6 +478,7 @@ const DockerComposeImport = ({ refresh, dockerComposeInit, installerInit, defaul
setDockerCompose(''); setDockerCompose('');
setInstaller(installerInit); setInstaller(installerInit);
setServiceName(cleanDefaultName || 'default-name'); setServiceName(cleanDefaultName || 'default-name');
resetPassword();
} }
return <> return <>

View file

@ -1,6 +1,6 @@
{ {
"name": "cosmos-server", "name": "cosmos-server",
"version": "0.8.1", "version": "0.8.2",
"description": "", "description": "",
"main": "test-server.js", "main": "test-server.js",
"bugs": { "bugs": {