Skip to content

Commit

Permalink
🍱 (AccountKit): Add old assets in YAML & update jtd w/ visible property
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz authored and ladislas committed Feb 28, 2024
1 parent 31abb38 commit f5f1c01
Show file tree
Hide file tree
Showing 24 changed files with 104 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Modules/AccountKit/Resources/avatars/avatars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
version: 1.0.0
categories:
- id: weather
visible: true
l10n:
- locale: fr_FR
name: Météo
Expand All @@ -18,6 +19,7 @@ categories:
- weather_sun_with_face

- id: professions
visible: true
l10n:
- locale: fr_FR
name: Métiers
Expand All @@ -32,6 +34,7 @@ categories:
- professions_pirate_leka

- id: eyeglasses
visible: true
l10n:
- locale: fr_FR
name: Lunettes
Expand All @@ -44,6 +47,7 @@ categories:
- eyeglasses_yellow_leka

- id: animals
visible: true
l10n:
- locale: fr_FR
name: Animaux
Expand All @@ -68,6 +72,7 @@ categories:
- animals_turtle

- id: fruits
visible: true
l10n:
- locale: fr_FR
name: Fruits
Expand All @@ -87,6 +92,7 @@ categories:
- fruits_watermelon

- id: vegetables
visible: true
l10n:
- locale: fr_FR
name: Légumes
Expand All @@ -102,3 +108,33 @@ categories:
- vegetables_potato
- vegetables_salad
- vegetables_tomato

- id: alpha
visible: false
l10n:
- locale: fr_FR
name: Alpha
- locale: en_US
name: Alpha
avatars:
- anonymous
- boy1
- boy2
- boy3
- boy4
- boy5
- boy6
- boy7
- boy8
- boy9
- boy10
- girl1
- girl2
- girl3
- girl4
- girl5
- girl6
- girl7
- girl8
- girl9
- girl10
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy1.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy10.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy2.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy3.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy4.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy5.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy6.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy7.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy8.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/boy9.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/girl1.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/girl2.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/girl3.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/girl4.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/girl5.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/girl6.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/girl7.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/girl8.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Modules/AccountKit/Resources/avatars/images/girl9.avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Modules/AccountKit/Sources/Models/Avatar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public struct AvatarCategory: Codable, Identifiable {
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self.id = try container.decode(String.self, forKey: .id)
self.visible = try container.decode(Bool.self, forKey: .visible)

self.l10n = try container.decode([AvatarCategory.Localization].self, forKey: .l10n)

Expand All @@ -92,6 +93,7 @@ public struct AvatarCategory: Codable, Identifiable {
// MARK: Public

public let id: String
public let visible: Bool
public let name: String
public let avatars: [String]

Expand Down
3 changes: 3 additions & 0 deletions Specs/jtd/avatars.jtd.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"id": {
"type": "string"
},
"visible": {
"type": "boolean"
},
"l10n": {
"elements": {
"ref": "$l10n"
Expand Down

0 comments on commit f5f1c01

Please sign in to comment.