Skip to content

Commit

Permalink
#1003: replaced old black box logo with new Platform logo (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
tombogle authored Sep 11, 2024
2 parents 9342504 + 46202cf commit bffc70b
Show file tree
Hide file tree
Showing 27 changed files with 197 additions and 77 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2024 SIL International
Copyright © 2022-2024 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Extensible Bible translation software

<div align="center">
<img src="doc-meta/doc-icon.png" />
<img src="./assets/icon.svg" width="256" alt="Platform icon" />
</div>

<div align="center">
Expand All @@ -16,15 +16,15 @@ Extensible Bible translation software

## Summary

Platform.Bible is an extensible Bible translation software. Its functionality is provided almost completely by extensions in order to be very powerful and flexible, giving developers the freedom to create and to share their desired Bible translation experience.
Platform.Bible is extensible Bible translation software. Its functionality is provided almost completely by extensions in order to be very powerful and flexible, giving developers the freedom to create and to share their desired Bible translation experience.

This repository contains the core Platform.Bible software (Electron client, extension host including "PAPI", and .NET library) and the extensions that come bundled with it. There are many other repositories containing additional Platform.Bible extensions.
This repository contains the core Platform.Bible software (Electron client, extension host including "PAPI", and .NET library) and the extensions that come bundled with it. There are many other repositories containing additional extensions.

## Users

This software is not yet ready for users. We'll update here with where you can install it when it is ready.

If you would still like to try Platform.Bible, you can [download early releases here on GitHub](https://github.com/paranext/paranext-core/releases).
If you would still like to try it, you can [download early releases here on GitHub](https://github.com/paranext/paranext-core/releases).

### Linux Users

Expand All @@ -42,9 +42,9 @@ If you download and run the ARM release of Platform.Bible from [a computer runni

![mac-arm-damaged-warning](doc-meta/mac-arm-damaged-warning.png)

Unfortunately, this is the message Apple chose to display for ARM applications that are not signed (including Platform.Bible since we have not yet set up application code signing on Mac).
Unfortunately, this is the message Apple chose to display for ARM applications that are not signed (including Platform.Bible, since we have not yet set up application code signing on Mac).

If you trust Platform.Bible and would like to run it even though it is not code signed, you will need to run the following terminal command every time you install a new version of Platform.Bible:
If you trust Platform.Bible and would like to run it even though it is not code signed, you will need to run the following terminal command every time you install a new version of it:

`xattr -c /Applications/Platform.Bible.app`

Expand Down
6 changes: 6 additions & 0 deletions assets/Lockup Inline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
125 changes: 90 additions & 35 deletions assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion assets/localization/en.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"%product_name%": "Platform.Bible",
"%about_versionLabel_format%": "Version: {version}",
"%about_licenseLabel_format%": "License: {license}",
"%insertNote%": "Insert Note",
"%mainMenu_aboutPlatformBible%": "About Platform.Bible",
"%mainMenu_about%": "About Platform.Bible",
"%mainMenu_downloadSlashInstallResources%": "Download/Install Resources",
"%mainMenu_downloadSlashUpdateProject%": "Download/Update Project",
"%mainMenu_exit%": "Exit",
Expand Down
27 changes: 27 additions & 0 deletions assets/localization/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"%about_versionLabel_format%": "Versión: {version}",
"%about_licenseLabel_format%": "Licencia: {license}",
"%insertNote%": "Insertar Nota",
"%mainMenu_aboutPlatformBible%": "Acerca de Platform.Bible",
"%mainMenu_downloadSlashInstallResources%": "Descargar/instalar recursos",
"%mainMenu_downloadSlashUpdateProject%": "Descargar/actualizar proyecto",
"%mainMenu_exit%": "Salir",
"%mainMenu_help%": "Ayuda",
"%mainMenu_layout%": "Diseño",
"%mainMenu_openProject%": "Abrir proyecto",
"%mainMenu_project%": "Proyecto",
"%mainMenu_settings%": "Configuración",
"%mainMenu_visitSupportBible%": "Visitar Support.Bible",
"%mainMenu_window%": "Ventana",
"%some_localization_key%": "Esto es el texto en español para %some_localization_key%.",
"%submitButton%": "Enviar",
"%webView_edit%": "Editar",
"%webView_openProjectSettings%": "Abrir configuraciones del proyecto",
"%webView_project%": "Proyecto",
"%webView_projectAssignmentsAndProgress%": "Asignaciones y progreso",
"%wordList%": "Lista de palabras",
"%settings_platform_group1_label%": "Configuraciones de Platform",
"%settings_platform_group1_description%": "Configuraciones generales del software fundamental",
"%settings_platform_interfaceLanguage_label%": "Idioma de interfaz",
"%settings_platform_interfaceLanguage_description%": "Lista de locales usados al localizar la interfaz en orden descendente de prioridad. 'en' (inglés) siempre se añade al final, de modo que si no se encuentra una traducción en ninguno de los idiomas especificados, aparecerá en inglés."
}
16 changes: 16 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@
"package-lock.json",
"vscode-extension"
],
"overrides": [
{
"filename": "**/fr.json",
"language": "fr",
"ignoreRegExpList": [
"\"%?[a-zA-Z0-9_]+%?\"\\s*:" // Do not spell-check JSON keys
]
},
{
"filename": "**/es.json",
"language": "es",
"ignoreRegExpList": [
"\"%?[a-zA-Z0-9_]+%?\"\\s*:" // Do not spell-check JSON keys
]
}
],
"dictionaryDefinitions": [],
"dictionaries": [],
"words": [
Expand Down
2 changes: 1 addition & 1 deletion electron-builder.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
productName: 'Platform.Bible',
appId: 'org.paranext.PlatformBible',
copyright: 'Copyright (c) 2022-2024 SIL International',
copyright: 'Copyright © 2022-2024 SIL International',
asar: true,
asarUnpack: '**\\*.{node,dll}',
files: ['dist', 'node_modules', 'package.json'],
Expand Down
2 changes: 1 addition & 1 deletion extensions/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2024 SIL International
Copyright © 2022-2024 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion extensions/src/hello-someone/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023-2024 SIL International
Copyright © 2023-2024 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion extensions/src/hello-world/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023-2024 SIL International
Copyright © 2023-2024 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion extensions/src/platform-scripture-editor/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023-2024 SIL International
Copyright © 2023-2024 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion extensions/src/platform-scripture/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023-2024 SIL International
Copyright © 2023-2024 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion extensions/src/quick-verse/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023-2024 SIL International
Copyright © 2023-2024 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion lib/papi-dts/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2024 SIL International
Copyright © 2022-2024 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions lib/papi-dts/papi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ declare module 'shared/models/web-view.model' {
/**
* Url of image to show on the title bar of the tab
*
* Defaults to Platform.Bible logo
* Defaults to the software's standard logo.
*/
iconUrl?: string;
/** Name of the tab for the WebView */
Expand Down Expand Up @@ -3024,7 +3024,7 @@ declare module 'shared/models/docking-framework.model' {
/**
* Url of image to show on the title bar of the tab
*
* Defaults to Platform.Bible logo
* Defaults to the software's standard logo.
*/
tabIconUrl?: string;
/** Text to show on the title bar of the tab */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import { ArrowDownIcon, ArrowUpDownIcon, ArrowUpIcon } from 'lucide-react';

/**
* Object containing all keys used for localization in this component. If you're using this
* component in Platform.Bible extension, you can pass it into the useLocalizedStrings hook to
* easily obtain the localized strings and pass them into the localizedStrings prop of the Inventory
* component
* component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the
* localized strings and pass them into the localizedStrings prop of the Inventory component
*/
export const INVENTORY_STRING_KEYS = Object.freeze([
'%webView_inventory_all%',
Expand Down
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Extensible Bible translation software",
"license": "MIT",
"author": {
"name": "Platform.Bible",
"name": "Platform",
"url": "https://github.com/paranext/"
},
"main": "./dist/main/main.js",
Expand Down
4 changes: 2 additions & 2 deletions src/extension-host/data/menu.data.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"command": "platform.visitSupportPage"
},
{
"label": "%mainMenu_aboutPlatformBible%",
"localizeNotes": "Application main menu > Help > About Platform.Bible",
"label": "%mainMenu_about%",
"localizeNotes": "Application main menu > Help > About (Platform.Bible or Software white-label name)",
"group": "platform.helpMisc",
"order": 2,
"command": "platform.about"
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ a:hover {
text-decoration: none;
}

.hello {
.about {
display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -66,11 +66,11 @@ a:hover {
overflow-y: auto;
}

.about-panel .hello {
.about-panel .test-panel {
color: white;
}

.hello > div {
.test-panel > div {
text-align: center;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type PlatformTabTitleProps = {
webViewType?: `${string}.${string}`;
/** Id of the tab this title is on */
tabId: string;
/** Url to image to show on the tab. Defaults to Platform.Bible logo */
/** Url to image to show on the tab. Defaults to the software's standard logo. */
iconUrl?: string;
/** Text to show on the tab */
text: string;
Expand All @@ -22,7 +22,7 @@ type PlatformTabTitleProps = {
/**
* Custom tab title for all tabs in Platform
*
* @param iconUrl Url to image to show on the tab. Defaults to Platform.Bible logo
* @param iconUrl Url to image to show on the tab. Defaults to the software's standard logo.
* @param text The text to show on the tab title
* @param tooltip Text to show when hovering over the tab. Defaults to empty string
*/
Expand Down
31 changes: 23 additions & 8 deletions src/renderer/testing/about-panel.component.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
import icon from '@assets/icon.png';
import { useLocalizedStrings } from '@renderer/hooks/papi-hooks';
import { SavedTabInfo, TabInfo } from '@shared/models/docking-framework.model';
import { LocalizeKey } from 'platform-bible-utils';
import { ReactComponent as InlineLogoAndName } from '@assets/Lockup Inline.svg';
import { formatReplacementString, LocalizeKey } from 'platform-bible-utils';
import PackageInfo from '../../../release/app/package.json';

export const TAB_TYPE_ABOUT = 'about';

const STRING_KEYS: LocalizeKey[] = ['%product_name%'];
const STRING_KEYS: LocalizeKey[] = [
'%product_name%',
'%about_versionLabel_format%',
'%about_licenseLabel_format%',
];

export default function AboutPanel() {
const [{ '%product_name%': productName }] = useLocalizedStrings(STRING_KEYS);
const [
{
'%product_name%': productName,
'%about_versionLabel_format%': versionLabelFormat,
'%about_licenseLabel_format%': licenseLabelFormat,
},
] = useLocalizedStrings(STRING_KEYS);

// logger.info());

return (
<div className="about-panel">
<div className="hello">
<img width="200" alt="icon" src={icon} />
</div>
<div className="hello">
<div className="about">
<InlineLogoAndName />
<h1>{productName}</h1>
<p>Copyright © 2022-2024 SIL International</p>
<p>{formatReplacementString(versionLabelFormat, PackageInfo)}</p>
<p>{formatReplacementString(licenseLabelFormat, PackageInfo)}</p>
<p>{PackageInfo.description}</p>
</div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/testing/test-buttons-panel.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default function TestButtonsPanel() {

return (
<div className="buttons-panel">
<div className="hello">
<div className="test-panel">
<TextField
label="Verse Ref"
value={verseRefIntermediate}
Expand Down Expand Up @@ -297,7 +297,7 @@ export default function TestButtonsPanel() {
Test
</Button>
</div>
<div className="hello">
<div className="test-panel">
<div>{promiseReturn}</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function TestQuickVerseHeresyPanel() {

return (
<div className="buttons-panel">
<div className="hello">
<div className="test-panel">
<img
src="papi-extension://quickVerse/assets/letter-q.png"
alt="Q icon"
Expand Down
2 changes: 1 addition & 1 deletion src/shared/models/docking-framework.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type TabInfo = SavedTabInfo & {
/**
* Url of image to show on the title bar of the tab
*
* Defaults to Platform.Bible logo
* Defaults to the software's standard logo.
*/
tabIconUrl?: string;
/** Text to show on the title bar of the tab */
Expand Down
2 changes: 1 addition & 1 deletion src/shared/models/web-view.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type WebViewDefinitionBase = {
/**
* Url of image to show on the title bar of the tab
*
* Defaults to Platform.Bible logo
* Defaults to the software's standard logo.
*/
iconUrl?: string;
/** Name of the tab for the WebView */
Expand Down

0 comments on commit bffc70b

Please sign in to comment.