Selaa lähdekoodia

update style, update web

tags/v1.5.4
Jonathan Cobb 3 vuotta sitten
vanhempi
commit
3428b43e65
12 muutettua tiedostoa jossa 21 lisäystä ja 15 poistoa
  1. +1
    -1
      bubble-server/src/main/java/bubble/auth/BubbleAuthFilter.java
  2. +9
    -3
      bubble-server/src/main/java/bubble/cloud/compute/docker/DockerComputeDriver.java
  3. +2
    -2
      bubble-server/src/main/java/bubble/cloud/storage/s3/S3StorageDriver.java
  4. +1
    -1
      bubble-server/src/main/java/bubble/model/account/AccountPolicy.java
  5. +1
    -1
      bubble-server/src/main/java/bubble/model/account/TotpBean.java
  6. +1
    -1
      bubble-server/src/main/java/bubble/model/cloud/BubbleFootprint.java
  7. +1
    -1
      bubble-server/src/main/java/bubble/notify/compute/NotificationHandler_compute_driver_get_regions.java
  8. +1
    -1
      bubble-server/src/main/java/bubble/notify/compute/NotificationHandler_compute_driver_get_sizes.java
  9. +1
    -1
      bubble-server/src/main/java/bubble/rule/bblock/BubbleBlockConfig.java
  10. +1
    -1
      bubble-web
  11. +1
    -1
      utils/cobbzilla-utils
  12. +1
    -1
      utils/cobbzilla-wizard

+ 1
- 1
bubble-server/src/main/java/bubble/auth/BubbleAuthFilter.java Näytä tiedosto

@@ -41,7 +41,7 @@ public class BubbleAuthFilter extends AuthFilter<Account> {
AUTH_ENDPOINT + EP_RESTORE + "/", AUTH_ENDPOINT + EP_CONFIGS, AUTH_ENDPOINT + EP_READY,
BUBBLE_MAGIC_ENDPOINT, NOTIFY_ENDPOINT, MESSAGES_ENDPOINT
}));
public static final Set<String> SKIP_AUTH_TEST = new HashSet<>(Arrays.asList(ArrayUtil.append(SKIP_AUTH_PREFIXES.toArray(new String[0]),
public static final Set<String> SKIP_AUTH_TEST = new HashSet<>(Arrays.asList(ArrayUtil.append(SKIP_AUTH_PREFIXES.toArray(String[]::new),
DEBUG_ENDPOINT
)));



+ 9
- 3
bubble-server/src/main/java/bubble/cloud/compute/docker/DockerComputeDriver.java Näytä tiedosto

@@ -34,6 +34,7 @@ import java.util.stream.Collectors;
import static bubble.service.packer.PackerJob.PACKER_IMAGE_PREFIX;
import static java.lang.Boolean.parseBoolean;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import static java.util.concurrent.TimeUnit.SECONDS;
import static org.cobbzilla.util.daemon.ZillaRuntime.*;
import static org.cobbzilla.util.json.JsonUtil.json;
@@ -51,9 +52,14 @@ public class DockerComputeDriver extends ComputeServiceDriverBase {
};
public static final List<CloudRegion> CLOUD_REGIONS = Arrays.asList(CLOUD_REGIONS_ARRAY);

public static final List<ComputeNodeSize> CLOUD_SIZES = Arrays.asList(new ComputeNodeSize[]{
new ComputeNodeSize().setName(LOCAL).setInternalName(LOCAL).setType(ComputeNodeSizeType.local)
});
public static final ComputeNodeSize LOCAL_SIZE = new ComputeNodeSize().setName(LOCAL).setInternalName(LOCAL).setType(ComputeNodeSizeType.local);
public static final List<ComputeNodeSize> CLOUD_SIZES = singletonList(LOCAL_SIZE);
public static final Map<String, ComputeNodeSize> NODE_SIZE_MAP = MapBuilder.build(LOCAL, LOCAL_SIZE);

@Override public Map<String, ComputeNodeSize> getSizesMap() { return NODE_SIZE_MAP; }

@Override public ComputeNodeSize getSize(ComputeNodeSizeType type) { return LOCAL_SIZE; }

public static final List<OsImage> CLOUD_OS_IMAGES = Arrays.asList(new OsImage[]{
new OsImage().setName("ubuntu:20.04").setId("ubuntu:20.04").setRegion(LOCAL)
});


+ 2
- 2
bubble-server/src/main/java/bubble/cloud/storage/s3/S3StorageDriver.java Näytä tiedosto

@@ -243,7 +243,7 @@ public class S3StorageDriver extends StorageServiceDriverBase<S3StorageConfig> {

return new StorageListing()
.setListingId(listRequestId)
.setKeys(keys.toArray(new String[0]))
.setKeys(keys.toArray(String[]::new))
.setTruncated(listing.isTruncated());
}

@@ -263,7 +263,7 @@ public class S3StorageDriver extends StorageServiceDriverBase<S3StorageConfig> {

return new StorageListing()
.setListingId(listingId)
.setKeys(keys.toArray(new String[0]))
.setKeys(keys.toArray(String[]::new))
.setTruncated(listingRequest.objectListing.isTruncated());
}



+ 1
- 1
bubble-server/src/main/java/bubble/model/account/AccountPolicy.java Näytä tiedosto

@@ -309,7 +309,7 @@ public class AccountPolicy extends IdentifiableBase implements HasAccount {
for (AccountContact c : getAccountContacts()) {
scrubbed.add(c.mask());
}
setAccountContacts(scrubbed.toArray(new AccountContact[0]));
setAccountContacts(scrubbed.toArray(AccountContact[]::new));
}
return this;
}


+ 1
- 1
bubble-server/src/main/java/bubble/model/account/TotpBean.java Näytä tiedosto

@@ -19,7 +19,7 @@ public class TotpBean {
public TotpBean(GoogleAuthenticatorKey creds, Account account, BubbleConfiguration configuration) {
setKey(creds.getKey());
setUrl(getOtpAuthTotpURL(configuration.getThisNetwork().getNetworkDomain(), account.getEmail()+"/"+configuration.getThisNetwork().getNetworkDomain(), creds));
setBackupCodes(creds.getScratchCodes().toArray(new Integer[0]));
setBackupCodes(creds.getScratchCodes().toArray(Integer[]::new));
}

@Getter @Setter private String key;


+ 1
- 1
bubble-server/src/main/java/bubble/model/cloud/BubbleFootprint.java Näytä tiedosto

@@ -109,7 +109,7 @@ public class BubbleFootprint extends IdentifiableBase implements AccountTemplate
public void addDisallowedCountries(String[] countries) {
final Set<String> disallowed = hasDisallowedCountries() ? new HashSet<>(Arrays.asList(getDisallowedCountries())) : new HashSet<>();
disallowed.addAll(Arrays.asList(countries));
setDisallowedCountries(new ArrayList<>(disallowed).toArray(new String[0]));
setDisallowedCountries(new ArrayList<>(disallowed).toArray(String[]::new));
}

public boolean isAllowedCountry (String country) {


+ 1
- 1
bubble-server/src/main/java/bubble/notify/compute/NotificationHandler_compute_driver_get_regions.java Näytä tiedosto

@@ -13,7 +13,7 @@ public class NotificationHandler_compute_driver_get_regions extends Notification
@Override protected CloudRegion[] handle(ReceivedNotification n,
ComputeDriverNotification notification,
ComputeServiceDriver compute) {
return compute.getRegions().toArray(new CloudRegion[0]);
return compute.getRegions().toArray(CloudRegion[]::new);
}

}

+ 1
- 1
bubble-server/src/main/java/bubble/notify/compute/NotificationHandler_compute_driver_get_sizes.java Näytä tiedosto

@@ -13,7 +13,7 @@ public class NotificationHandler_compute_driver_get_sizes extends NotificationHa
@Override protected ComputeNodeSize[] handle(ReceivedNotification n,
ComputeDriverNotification notification,
ComputeServiceDriver compute) {
return compute.getSizes().toArray(new ComputeNodeSize[0]);
return compute.getSizes().toArray(ComputeNodeSize[]::new);
}

}

+ 1
- 1
bubble-server/src/main/java/bubble/rule/bblock/BubbleBlockConfig.java Näytä tiedosto

@@ -67,7 +67,7 @@ public class BubbleBlockConfig extends RequestModifierConfig {
}

if (retained.size() < blockLists.length) {
blockLists = retained.toArray(new BubbleBlockList[0]);
blockLists = retained.toArray(BubbleBlockList[]::new);
} else {
log.warn("removeList: list not found, not removed: "+list.id());
}


+ 1
- 1
bubble-web

@@ -1 +1 @@
Subproject commit 7c69c76eaae51ede299a3918873f0fca01e7f8fe
Subproject commit b19222f00bf9eb4071ed0925ded2c810f62e6e52

+ 1
- 1
utils/cobbzilla-utils

@@ -1 +1 @@
Subproject commit 8647e5f4429377e033b4605ae37c55717fef3e44
Subproject commit 8d2c6f1e9b4bac49688508bf3f9ac584a5b86619

+ 1
- 1
utils/cobbzilla-wizard

@@ -1 +1 @@
Subproject commit 50dbd4340e4444916023e63d2d5e97469cc17de3
Subproject commit 228fa8d952790d848d4551a7859766e3f23f74d9

Ladataan…
Peruuta
Tallenna