Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
| Edit Snippet | `Cmd/Ctrl + E` | Edit a snippet |
| Delete Snippet | `Cmd/Ctrl + Del` | Delete selected snippet |
| Submit | `Cmd/Ctrl + S` | Submit the changes from the editor |
| Sync | `Cmd/Ctrl + R` | Sync with remote Gist server |
| Sync | `Cmd/Ctrl + R` | Sync snippets with GitHub Gist |
| Immersive Mode | `Cmd/Ctrl + I` | Toggle the [Immersive mode](https://github.com/hackjutsu/Lepton/blob/master/docs/img/portfolio/immersive.png) |
| Dashboard | `Cmd/Ctrl + D` | Toggle the [dashboard](https://github.com/hackjutsu/Lepton/blob/master/docs/img/portfolio/dashboard.png) |
| About Page | `Cmd/Ctrl + ,` | Toggle the [About page](https://github.com/hackjutsu/Lepton/blob/dev/docs/img/portfolio/about.png) |
Expand All @@ -60,7 +60,6 @@ Lepton's can be customized by `<home_dir>/.leptonrc`! You can find its exact pat

- Theme (`light`, `dark`, `one-dark`, `atom-one-dark`, `github-light`, `github-dark`, `catppuccin-latte`, `catppuccin-mocha`, `solarized-light`, `solarized-dark`, `dracula`, `material-theme`, or `ayu`)
- Snippet
- Gist
- Editor
- Logger
- Proxy
Expand Down Expand Up @@ -220,7 +219,7 @@ $ LEPTON_RENDER_FIXTURE=active npm start
```

Fixtures verify that important React surfaces mount without renderer warnings,
errors, failed loads, or crashes. They do not verify GitHub OAuth, Gist CRUD,
errors, failed loads, or crashes. They do not verify GitHub OAuth, snippet CRUD,
sync behavior, real API responses, OS shortcut delivery, or full interaction
flows.

Expand All @@ -244,7 +243,7 @@ $ npm run build && npm start

Confirm the login page visibly renders. After login, manually verify the
surfaces affected by your change, such as new snippet, edit snippet,
settings/about, dashboard, search, sync, and GitHub/Gist backend interactions.
settings/about, dashboard, search, sync, and GitHub Gist backend interactions.
Manual verification is still required for visual quality and real GitHub
behavior; automated smoke checks do not replace backend workflow testing.

Expand Down
2 changes: 1 addition & 1 deletion app/containers/navigationPanelDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class NavigationPanelDetails extends Component {
handleClicked (gistId) {
const { gists, fetchSingleGist, selectGist } = this.props

logger.info('A new gist is selected: ' + gistId)
logger.info('A new snippet is selected: ' + gistId)
if (!gists[gistId].details) {
logger.info('[Dispatch] fetchSingleGist ' + gistId)
fetchSingleGist(gists[gistId], gistId)
Expand Down
4 changes: 2 additions & 2 deletions app/containers/snippet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ class Snippet extends Component {
accessToken,
activeGist)
.catch(err => {
logger.error('Failed to delete the gist ' + activeGist)
logger.error('Failed to delete the snippet ' + activeGist)
logger.error(JSON.stringify(err))
notifyFailure(t('notification.deletionFailed'), t('notification.networkFailure', { code: '02' }))
})
.then(data => {
logger.info('The gist ' + activeGist + ' has been deleted.')
logger.info('The snippet ' + activeGist + ' has been deleted.')
notifySuccess(t('notification.gistDeleted'))

// For performance purpose, we should perform an internal update, like what
Expand Down
2 changes: 1 addition & 1 deletion app/containers/snippetPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SnippetPanel extends Component {
renderEmptySnippetSection () {
return (
<Well className='welcome-section'>
<pre className='welcome-ascii' aria-label='No gists'>{ emptyStateDinosaur }</pre>
<pre className='welcome-ascii' aria-label='No snippets'>{ emptyStateDinosaur }</pre>
</Well>
)
}
Expand Down
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function downloadGistDetailsAfterListSync (gistList, token) {

let downloaded = 0
updateSnippetDownloadStatus(downloaded, total)
logger.info(`[sync] Downloading details for ${total} gists`)
logger.info(`[sync] Downloading details for ${total} snippets`)
return Promise.map(gistList, gist => {
return getGitHubApi(GET_SINGLE_GIST)(token, gist.id)
.then(details => {
Expand Down
32 changes: 16 additions & 16 deletions app/utilities/i18n/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
complimentMaster: '{{language}} Master!',
complimentPrefix: 'Well done! You are on the road to',
mysteriousLanguage: 'Hmm... Looks like you are learning a mysterious language.',
notEnoughData: 'Not enough data. Try creating gists of more than two languages. Happy Coding!',
notEnoughData: 'Not enough data. Try creating snippets of more than two languages. Happy Coding!',
statsLabel: 'My Language Stats',
title: 'Dashboard'
},
Expand Down Expand Up @@ -63,23 +63,23 @@ module.exports = {
bringAllToFront: 'Bring All to Front',
close: 'Close',
dashboard: 'Dashboard',
deleteGist: 'Delete Gist',
deleteGist: 'Delete Snippet',
edit: 'Edit',
editGist: 'Edit Gist',
editGist: 'Edit Snippet',
exitEditor: 'Exit Editor',
gist: 'Gist',
gist: 'Snippet',
immersiveMode: 'Immersive Mode',
learnMore: 'Learn More',
minimize: 'Minimize',
newGist: 'New Gist',
newGist: 'New Snippet',
openLeptonWindow: 'Open Lepton window',
openWindow: 'Open Window',
quit: 'Quit',
quitLepton: 'Quit Lepton',
search: 'Search',
speech: 'Speech',
submitGist: 'Submit Gist',
syncGist: 'Sync Gist',
submitGist: 'Submit Snippet',
syncGist: 'Sync Snippet',
toggleDeveloperTools: 'Toggle Developer Tools',
view: 'View',
zoom: 'Zoom'
Expand All @@ -97,11 +97,11 @@ module.exports = {
contentCopied: 'The content has been copied to the clipboard.',
copied: 'Copied',
deletionFailed: 'Deletion failed',
gistCreated: 'Gist created',
gistCreationFailed: 'Gist creation failed',
gistDeleted: 'The gist has been deleted',
gistUpdateFailed: 'Gist update failed',
gistUpdated: 'Gist updated',
gistCreated: 'Snippet created',
gistCreationFailed: 'Snippet creation failed',
gistDeleted: 'The snippet has been deleted',
gistUpdateFailed: 'Snippet update failed',
gistUpdated: 'Snippet updated',
linkCopied: 'The link has been copied to the clipboard.',
networkFailure: 'Please check your network condition. {{code}}',
rawLinkCopied: 'The raw file link has been copied to the clipboard.',
Expand All @@ -126,15 +126,15 @@ module.exports = {
copy: 'COPY',
delete: 'Delete',
deleteAction: 'delete',
deleteConfirmTitle: 'Delete the gist?',
deleteConfirmTitle: 'Delete the snippet?',
edit: 'Edit',
lastActive: 'Last active {{time}}',
link: 'LINK',
openInWeb: 'Open in Web',
publicGist: 'public gist',
publicGist: 'public snippet',
raw: 'RAW',
revisions: 'Revisions',
secretGist: 'secret gist',
secretGist: 'secret snippet',
share: 'SHARE'
},
touchBar: {
Expand All @@ -158,6 +158,6 @@ module.exports = {
sync: 'Sync'
},
welcome: {
emptySnippet: 'Click #new on the left panel to create a gist.'
emptySnippet: 'Click #new on the left panel to create a snippet.'
}
}
32 changes: 16 additions & 16 deletions app/utilities/i18n/locales/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
complimentMaster: 'Maestro de {{language}}!',
complimentPrefix: 'Bien hecho! Vas camino a ser',
mysteriousLanguage: 'Hmm... Parece que estas aprendiendo un lenguaje misterioso.',
notEnoughData: 'No hay suficientes datos. Prueba crear gists de mas de dos lenguajes. Happy Coding!',
notEnoughData: 'No hay suficientes datos. Prueba crear snippets de mas de dos lenguajes. Happy Coding!',
statsLabel: 'Mis estadisticas de lenguajes',
title: 'Panel'
},
Expand Down Expand Up @@ -63,23 +63,23 @@ module.exports = {
bringAllToFront: 'Traer todo al frente',
close: 'Cerrar',
dashboard: 'Panel',
deleteGist: 'Eliminar Gist',
deleteGist: 'Eliminar snippet',
edit: 'Editar',
editGist: 'Editar Gist',
editGist: 'Editar snippet',
exitEditor: 'Salir del editor',
gist: 'Gist',
gist: 'Snippet',
immersiveMode: 'Modo inmersivo',
learnMore: 'Mas informacion',
minimize: 'Minimizar',
newGist: 'Nuevo Gist',
newGist: 'Nuevo snippet',
openLeptonWindow: 'Abrir ventana de Lepton',
openWindow: 'Abrir ventana',
quit: 'Salir',
quitLepton: 'Salir de Lepton',
search: 'Buscar',
speech: 'Voz',
submitGist: 'Enviar Gist',
syncGist: 'Sincronizar Gist',
submitGist: 'Enviar snippet',
syncGist: 'Sincronizar snippet',
toggleDeveloperTools: 'Alternar herramientas de desarrollo',
view: 'Ver',
zoom: 'Zoom'
Expand All @@ -97,11 +97,11 @@ module.exports = {
contentCopied: 'El contenido se copio al portapapeles.',
copied: 'Copiado',
deletionFailed: 'No se pudo eliminar',
gistCreated: 'Gist creado',
gistCreationFailed: 'No se pudo crear el Gist',
gistDeleted: 'El Gist se elimino',
gistUpdateFailed: 'No se pudo actualizar el Gist',
gistUpdated: 'Gist actualizado',
gistCreated: 'Snippet creado',
gistCreationFailed: 'No se pudo crear el snippet',
gistDeleted: 'El snippet se elimino',
gistUpdateFailed: 'No se pudo actualizar el snippet',
gistUpdated: 'Snippet actualizado',
linkCopied: 'El enlace se copio al portapapeles.',
networkFailure: 'Revisa tu conexion de red. {{code}}',
rawLinkCopied: 'El enlace del archivo RAW se copio al portapapeles.',
Expand All @@ -126,15 +126,15 @@ module.exports = {
copy: 'COPIAR',
delete: 'Eliminar',
deleteAction: 'eliminar',
deleteConfirmTitle: 'Eliminar este Gist?',
deleteConfirmTitle: 'Eliminar este snippet?',
edit: 'Editar',
lastActive: 'Ultima actividad {{time}}',
link: 'ENLACE',
openInWeb: 'Abrir en la web',
publicGist: 'gist publico',
publicGist: 'snippet publico',
raw: 'RAW',
revisions: 'Revisiones',
secretGist: 'gist secreto',
secretGist: 'snippet secreto',
share: 'COMPARTIR'
},
touchBar: {
Expand All @@ -158,6 +158,6 @@ module.exports = {
sync: 'Sincronizar'
},
welcome: {
emptySnippet: 'Haz clic en #new en el panel izquierdo para crear un gist.'
emptySnippet: 'Haz clic en #new en el panel izquierdo para crear un snippet.'
}
}
32 changes: 16 additions & 16 deletions app/utilities/i18n/locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
complimentMaster: 'Maitre {{language}} !',
complimentPrefix: 'Bien joue ! Vous etes en route vers',
mysteriousLanguage: 'Hmm... On dirait que vous apprenez un langage mysterieux.',
notEnoughData: 'Pas assez de donnees. Creez des gists dans plus de deux langages. Happy Coding!',
notEnoughData: 'Pas assez de donnees. Creez des extraits dans plus de deux langages. Happy Coding!',
statsLabel: 'Mes stats de langages',
title: 'Tableau de bord'
},
Expand Down Expand Up @@ -63,23 +63,23 @@ module.exports = {
bringAllToFront: 'Tout ramener au premier plan',
close: 'Fermer',
dashboard: 'Tableau de bord',
deleteGist: 'Supprimer le Gist',
deleteGist: 'Supprimer l extrait',
edit: 'Modifier',
editGist: 'Modifier le Gist',
editGist: 'Modifier l extrait',
exitEditor: 'Quitter l editeur',
gist: 'Gist',
gist: 'Extrait',
immersiveMode: 'Mode immersif',
learnMore: 'En savoir plus',
minimize: 'Reduire',
newGist: 'Nouveau Gist',
newGist: 'Nouvel extrait',
openLeptonWindow: 'Ouvrir la fenetre Lepton',
openWindow: 'Ouvrir la fenetre',
quit: 'Quitter',
quitLepton: 'Quitter Lepton',
search: 'Rechercher',
speech: 'Parole',
submitGist: 'Envoyer le Gist',
syncGist: 'Synchroniser le Gist',
submitGist: 'Envoyer l extrait',
syncGist: 'Synchroniser l extrait',
toggleDeveloperTools: 'Basculer les outils de developpement',
view: 'Affichage',
zoom: 'Zoom'
Expand All @@ -97,11 +97,11 @@ module.exports = {
contentCopied: 'Le contenu a ete copie dans le presse-papiers.',
copied: 'Copie',
deletionFailed: 'Suppression echouee',
gistCreated: 'Gist cree',
gistCreationFailed: 'Creation du Gist echouee',
gistDeleted: 'Le gist a ete supprime',
gistUpdateFailed: 'Mise a jour du Gist echouee',
gistUpdated: 'Gist mis a jour',
gistCreated: 'Extrait cree',
gistCreationFailed: 'Creation de l extrait echouee',
gistDeleted: 'L extrait a ete supprime',
gistUpdateFailed: 'Mise a jour de l extrait echouee',
gistUpdated: 'Extrait mis a jour',
linkCopied: 'Le lien a ete copie dans le presse-papiers.',
networkFailure: 'Veuillez verifier votre connexion. {{code}}',
rawLinkCopied: 'Le lien du fichier RAW a ete copie dans le presse-papiers.',
Expand All @@ -126,15 +126,15 @@ module.exports = {
copy: 'COPIER',
delete: 'Supprimer',
deleteAction: 'supprimer',
deleteConfirmTitle: 'Supprimer ce gist ?',
deleteConfirmTitle: 'Supprimer cet extrait ?',
edit: 'Modifier',
lastActive: 'Derniere activite {{time}}',
link: 'LIEN',
openInWeb: 'Ouvrir dans le web',
publicGist: 'gist public',
publicGist: 'extrait public',
raw: 'RAW',
revisions: 'Historique',
secretGist: 'gist secret',
secretGist: 'extrait secret',
share: 'PARTAGER'
},
touchBar: {
Expand All @@ -158,6 +158,6 @@ module.exports = {
sync: 'Synchroniser'
},
welcome: {
emptySnippet: 'Cliquez sur #new dans le panneau gauche pour creer un gist.'
emptySnippet: 'Cliquez sur #new dans le panneau gauche pour creer un extrait.'
}
}
Loading
Loading