feat(memo): added memo base

This commit is contained in:
Corentin Thomasset 2021-08-02 21:35:12 +02:00
parent a40aae44ce
commit a5953a3c42
No known key found for this signature in database
GPG key ID: DBD997E935996158
11 changed files with 864 additions and 157 deletions

View file

@ -0,0 +1,57 @@
<tool>
title: 'Git memo'
description: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus distinctio dolor dolorum eaque eligendi, facilis impedit laboriosam odit placeat.'
icon: 'mdi-git'
keywords: ['git', 'memo', 'cheat', 'sheet']
path: '/git-memo'
</tool>
<memo>
## Configuration
### Set the global username
```shell
git config --global user.name "[name]"
```
### Set the global email
```shell
git config --global user.email "[email]"
```
## I've made a mistake
### Change last commit message
```shell
git commit --amend
```
### Undo most recent commit and keep changes
```shell
git reset HEAD~1
```
### Undo most recent commit and get rid of changes
```shell
git reset HEAD~1 --hard
```
### Reset branch to remote state
```shell
git fetch origin
git reset --hard origin/[branch-name]
```
</memo>
<script lang="ts">
import {Component} from 'nuxt-property-decorator'
import Memo from '~/components/Memo.vue'
@Component
export default class GitMemo extends Memo {
}
</script>

View file

@ -1,27 +0,0 @@
<tool>
title: 'Git memo old'
description: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus distinctio dolor dolorum eaque eligendi, facilis impedit laboriosam odit placeat.'
icon: 'mdi-git'
keywords: ['git', 'memo', 'cheat', 'sheet']
path: '/git-memo-test'
</tool>
<template lang="md">
<ToolWrapper :config="$toolConfig">
## test
```js
yolo
```
</ToolWrapper>
</template>
<script lang="ts">
import {Component} from 'nuxt-property-decorator'
import Tool from '~/components/Tool.vue'
@Component
export default class GitMemo extends Tool {
}
</script>

View file

@ -1,62 +0,0 @@
<tool>
title: 'Git memo'
description: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus distinctio dolor dolorum eaque eligendi, facilis impedit laboriosam odit placeat.'
icon: 'mdi-git'
keywords: ['git', 'memo', 'cheat', 'sheet']
path: '/git-memo'
</tool>
<script lang="ts">
import {Component} from 'nuxt-property-decorator'
import Memo from '~/components/Memo.vue'
@Component
export default class GitMemo extends Memo {
}
</script>
<i18n lang="yaml">
en:
memo:
- section: Titre de la section 1
items:
- text: Tip n°1
- text: Tip n°2 (avec sous titre
subtitle: Un super sous titre
- text: Tip n°3 (avec du code !)
code: rm -rf / --no-preserve-root
- text: Tip n°4 (avec du code et un sous titre !)
code: rm -rf / --no-preserve-root
subtitle: Un super sous titre, yeah
- section: Titre de la section 2
items:
- text: Tip n°1
- text: Tip n°2
- text: Tip n°3 (avec du code !)
code: rm -rf / --no-preserve-root
- text: Tip n°4
code: "multiline\ncode sample"
- section: Titre de la section 3
items:
- text: Tip n°1
- text: Tip n°2 (avec sous titre
subtitle: Un super sous titre
- text: Tip n°3 (avec du code !)
code: rm -rf / --no-preserve-root
- text: Tip n°4 (avec du code et un sous titre !)
code: rm -rf / --no-preserve-root
subtitle: Un super sous titre, yeah
- section: Titre de la section 4
items:
- text: Tip n°1
- text: Tip n°2 (avec sous titre
subtitle: Un super sous titre
- text: Tip n°3 (avec du code !)
code: rm -rf / --no-preserve-root
- text: Tip n°4 (avec du code et un sous titre !)
code: rm -rf / --no-preserve-root
subtitle: Un super sous titre, yeah
</i18n>