Skip to content

Commit

Permalink
Merge pull request #1514 from Pylons-tech/feat/upload-new-audio-icon-…
Browse files Browse the repository at this point in the history
…#1395

2.) Upload (new audio icon) #1395
  • Loading branch information
MikeSofaer authored Dec 23, 2022
2 parents e3c9e92 + 13962d1 commit 836c261
Show file tree
Hide file tree
Showing 16 changed files with 478 additions and 227 deletions.
3 changes: 3 additions & 0 deletions easel/assets/images/svg/audio_file_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
131 changes: 131 additions & 0 deletions easel/assets/images/svg/full_screen_img_gridview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion easel/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"compressing_thumbnail": "Miniaturbild Komprimieren",
"uploading": "Hochladen ...",
"nft_name": "{}",
"could_not_uploaded": "{} konnte nicht hochgeladen werden",
"could_not_uploaded": "{fileName} konnte nicht hochgeladen werden. Das {format} NFT muss:",
"something_wrong": "Etwas ist schief gelaufen. Bitte versuchen Sie, die Anwendung neu zu starten.",
"err_add_audio_thumbnail": "Bitte Audio-Thumbnail auswählen",
"err_add_video_thumbnail": "Bitte Video-Thumbnail auswählen",
Expand Down
2 changes: 1 addition & 1 deletion easel/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"compressing_thumbnail": "Compressing Thumbnail",
"uploading": "Uploading ...",
"nft_name": "{}",
"could_not_uploaded": "{} could not be uploaded",
"could_not_uploaded": "{fileName} could not be uploaded. The {format} NFT must be:",
"something_wrong": "Something went wrong. Please try restarting the application.",
"err_add_audio_thumbnail": "Please select audio thumbnail",
"err_add_video_thumbnail": "Please select video thumbnail",
Expand Down
2 changes: 1 addition & 1 deletion easel/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"compressing_thumbnail": "Comprimir archivo de miniaturas",
"uploading": "Subiendo...",
"nft_name": "{}",
"could_not_uploaded": "{} no se pudo cargar",
"could_not_uploaded": "{fileName} no se pudo cargar. El {format} NFT debe ser:",
"something_wrong": "Algo salió mal. Intenta reiniciar la aplicación.",
"err_add_audio_thumbnail": "Seleccione el archivo de miniatura de audio",
"err_add_video_thumbnail": "Seleccione el archivo de miniatura de video",
Expand Down
2 changes: 1 addition & 1 deletion easel/i18n/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"pylons_app": "Приложение пилонов",
"once_you_enter_all": "После того, как вы введете всю необходимую информацию, бесплатно запустите свой NFT в блокчейн pylons!",
"compressing_thumbnail": "Compressing Thumbnail",
"could_not_uploaded": "{} не удалось загрузить",
"could_not_uploaded": "{fileName} не удалось загрузить. {format} NFT должен быть:",
"something_wrong": "Что-то пошло не так. Попробуйте перезапустить приложение.",
"err_add_audio_thumbnail": "Пожалуйста, выберите миниатюру аудио",
"err_add_video_thumbnail": "Пожалуйста, выберите миниатюру видео",
Expand Down
2 changes: 0 additions & 2 deletions easel/lib/generated/locale_keys.g.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// DO NOT EDIT. This is code generated via package:easy_localization/generate.dart
// ignore_for_file: constant_identifier_names

abstract class LocaleKeys {
static const creator_hub = 'creator_hub';
Expand All @@ -8,7 +7,6 @@ abstract class LocaleKeys {
static const publish_total = 'publish_total';
static const draft_total = 'draft_total';
static const draft = 'draft';
static const publish = 'publish';
static const delete = 'delete';
static const view = 'view';
static const delete_error = 'delete_error';
Expand Down
9 changes: 7 additions & 2 deletions easel/lib/models/nft_format.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ class NftFormat {
final String badge;
final Color color;

NftFormat({required this.format, required this.extensions, required this.badge, required this.color});
NftFormat({
required this.format,
required this.extensions,
required this.badge,
required this.color,
});

String getExtensionsList() {
final buffer = StringBuffer();
Expand Down Expand Up @@ -45,7 +50,7 @@ class NftFormat {
NftFormat(
format: NFTTypes.audio,
extensions: ['wav', 'aiff', 'alac', 'flac', 'mp3', 'aac', 'wma', 'ogg'],
badge: SVGUtils.kSvgNftFormatAudio,
badge: SVGUtils.kAudioFileIcon,
color: EaselAppTheme.kLightRed,
),
NftFormat(
Expand Down
Loading

0 comments on commit 836c261

Please sign in to comment.