Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
7006208
fix(pinia-orm-1569): Wrong behaviour of `$getOriginal` (#1576)
CodeDredd Aug 30, 2023
b6923f8
chore: merge origing/master
CodeDredd Sep 1, 2023
b1a2182
docs(pinia-orm-1382): Typo in docs examples: form -> from (#1590)
CodeDredd Sep 2, 2023
7bdae6f
docs(pinia-orm): Broken link or missing reference (#1596)
CodeDredd Sep 3, 2023
04ac4d2
feat: Add options for uid, nanoid/uid and uuid/uid (#1510)
daniser Sep 4, 2023
b2e7d46
feat: improve lookup performance and allow composite key lookup (#1206)
edusperoni Sep 4, 2023
81153f5
chore(pinia-orm): linting
CodeDredd Sep 4, 2023
be3c4f4
refactor(pinia-orm): `useRepo` was having the wrong types for reposit…
CodeDredd Sep 5, 2023
652b652
refactor(pinia-orm): revert some type changes
CodeDredd Sep 5, 2023
e3f4e6a
chore: merge origin master
CodeDredd Sep 5, 2023
4c46c2e
feat: improve performance by mutating the state (#1604)
edusperoni Sep 5, 2023
1ac4de0
refactor(pinia-orm): Move away from js files and use cjs extension. A…
CodeDredd Sep 6, 2023
25090ec
refactor(pinia-orm): Add correct operation for `insert`
CodeDredd Sep 6, 2023
5284a7b
chore: Change renovate cycle
CodeDredd Sep 7, 2023
dc2de9e
chore: Add pnpm default install strategy
CodeDredd Sep 7, 2023
f6ca323
feat(pinia-orm): Add namespace option for the store (#1618)
CodeDredd Sep 8, 2023
7d09fee
docs: add Compositekey lookup (#1621)
tintin10q Sep 9, 2023
451d7b3
fix(pinia-orm): `Uncaught TypeError: parent.$fields()[key] is undefie…
CodeDredd Sep 12, 2023
5a152c8
docs: Update depencies & fix small display errors (#1627)
CodeDredd Sep 15, 2023
c4eb2e4
feat: Add plugin system & axios plugin (#1603)
CodeDredd Sep 16, 2023
e26a512
docs: : Update correct size
CodeDredd Sep 16, 2023
fdc909b
docs: : Update nuxt dependencies
CodeDredd Sep 17, 2023
8023336
chore: merge origin master
CodeDredd Sep 17, 2023
4d1a21e
refactor(pinia-orm): Make nanoid async uuid deprecated
CodeDredd Sep 17, 2023
43f0dcc
chore: Remove agolia workflow
CodeDredd Sep 17, 2023
368370e
chore: Use codecov v3
CodeDredd Sep 17, 2023
d0cd5e6
feat(pinia-orm): Add `setModel` for Repository
CodeDredd Sep 17, 2023
d77e027
refactor(pinia-orm): linting
CodeDredd Sep 17, 2023
05efbbc
feat(pinia-orm): Throw an error when trying to save a list into a one…
CodeDredd Sep 17, 2023
7c5a23e
docs(pinia-orm): adapt STI docs to be more correctly
CodeDredd Sep 17, 2023
8dc6efa
chore: Issue template improvement (#1636)
tintin10q Sep 17, 2023
dcbc02e
feat(pinia-orm): Add HMR support
CodeDredd Sep 17, 2023
ab9202b
chore: Change ci workflow for build
CodeDredd Sep 17, 2023
6b2edf9
chore: Change ci workflow for build
CodeDredd Sep 17, 2023
02efd88
chore: Change ci workflow for build
CodeDredd Sep 17, 2023
640a58f
chore(nuxt): remove type module
CodeDredd Sep 17, 2023
a61e359
chore: change ci build
CodeDredd Sep 17, 2023
2ed5753
feat(pinia-orm): Composite primary key can now be used with `destroy`…
CodeDredd Sep 17, 2023
8a1e061
docs: Add twitter back
CodeDredd Sep 17, 2023
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
9 changes: 5 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ body:
attributes:
value: |
Please use a template below to create a minimal reproduction
👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz
👉 https://codesandbox.io/s/github/nuxt/starter/tree/v3-codesandbox
👉 https://pinia-orm-play.codedredd.de/ (pinia-orm playground, pick this if you are not using nuxt)
👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitzk (basic nuxt on stackblitz)
👉 https://codesandbox.io/s/github/nuxt/starter/tree/v3-codesandbox (basic nuxt on codesandbox)
- type: textarea
id: bug-env
attributes:
label: Environment
description: You can use e.g. `npx nuxi info` for nuxt to fill this section
description: Put *playground* when in the playground. Otherwise you could use `npx nuxi info` for nuxt to fill this section.
placeholder: Environment
validations:
required: true
required: false
- type: textarea
id: reproduction
attributes:
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ body:
description: Additional information that helps us decide how to proceed.
options:
- label: Would you be willing to help implement this feature?
- label: Could this feature be implemented as a module?
- type: checkboxes
id: required-info
attributes:
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/algolia.yml

This file was deleted.

41 changes: 24 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4

- name: Install pnpm
uses: pnpm/action-setup@v2
- run: corepack enable

- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 18
cache: "pnpm"

- name: Install pnpm
uses: pnpm/action-setup@v2

- run: pnpm i

- run: pnpm run build:stub
# - run: pnpm run build:prepare
- run: pnpm run build:ci

- name: Run unit tests
Expand All @@ -41,24 +45,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4

- name: Install pnpm
uses: pnpm/action-setup@v2
- run: corepack enable

- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 18
cache: "pnpm"

- run: pnpm i

- run: pnpm run build:stub
# - run: pnpm run build:prepare
- run: pnpm run build:ci

- name: Run test coverage
run: pnpm run test:coverage

- name: Publish coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./packages
Expand All @@ -67,17 +72,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4

- name: Install pnpm
uses: pnpm/action-setup@v2
- run: corepack enable

- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 18
cache: "pnpm"

- run: pnpm i

- run: pnpm run build:stub
# - run: pnpm run build:prepare
- run: pnpm run build:ci

- name: Run eslint
Expand All @@ -89,15 +95,16 @@ jobs:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4

- name: Install pnpm
uses: pnpm/action-setup@v2
- run: corepack enable

- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 18
cache: "pnpm"

- run: pnpm i
- run: pnpm run build:stub
# - run: pnpm run build:prepare
- run: pnpm run build:ci
- run: pnpm run size
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,3 @@ Temporary Items
.build-*
.env
.netlify

.npmrc
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
shamefully-hoist=true
strict-peer-dependencies=false
shell-emulator=true
6 changes: 4 additions & 2 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export default defineAppConfig({
description: 'The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.',
url: 'https://pinia-orm.codedredd.de',
socials: {
github: 'codedredd/pinia-orm'
github: 'codedredd/pinia-orm',
twitter: '_Gregor_Becker'
},
cover: {
src: '/preview.png',
Expand All @@ -15,7 +16,8 @@ export default defineAppConfig({
collapsed: true,
},
header: {
logo: true
logo: true,
navigation: true
},
footer: {
credits: {
Expand Down
2 changes: 0 additions & 2 deletions docs/components/content/BackgroundLogo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<img height="220" width="220" src="/logo.svg">
</div>
</div>
<div class="hero-background absolute bottom-0 blur-[72px] w-96 h-96 rounded-[50%]" />
</div>
<div class="w-full h-full xl:hidden">
<div class="flex items-center top-16 right-[24%] absolute justify-center z-[-20]">
Expand All @@ -15,7 +14,6 @@
<img height="50" width="50" src="/logo.svg">
</div>
</div>
<div class="hero-background absolute bottom-0 blur-[40px] w-32 h-32 rounded-[50%]" />
</div>
</template>

Expand Down
169 changes: 169 additions & 0 deletions docs/components/content/app/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<script setup lang="ts">
import { useMagicKeys } from '@vueuse/core'

const { config } = useDocus()
const { navigation } = useContent()
const { y } = useWindowScroll()
const route = useRoute()

const showDocsSearch = ref(false)

const hasDrawer = computed(() => navigation.value?.length > 1 || navigation.value?.[0]?.children?.length)

const isBasicLayout = computed(() => route.meta.layout === 'basic')

const { meta_K, Escape } = useMagicKeys()

watch(meta_K, (v) => {
if (v) {
showDocsSearch.value = !showDocsSearch.value
}
})

watch(Escape, () => {
if (showDocsSearch.value)
showDocsSearch.value = false
})
</script>

<template>
<header :class="{ 'has-drawer': hasDrawer, 'is-basic-layout': isBasicLayout, 'on-top': y === 0 }">
<Container>
<div class="header-layout">
<div class="section left">
<AppHeaderDrawer v-if="hasDrawer" />
<AppHeaderLogo />
</div>

<div class="section center">
<AppHeaderLogo />
<AppNavigation v-if="config.header.navigation" />
<DocsSearch v-model="showDocsSearch" />
</div>

<div class="section right">
<!-- <AppTextDirection /> -->
<DocsSearchButton
class="docs-search-button-mobile"
@click="showDocsSearch = true"
/>
<DocsSearchButton
class="docs-search-button-desktop !w-auto"
@click="showDocsSearch = true"
/>
<AppColorMode />
<div class="social-icons">
<AppSocialIcons />
</div>
</div>
</div>
</Container>
</header>
</template>

<style scoped lang="ts">
css({
':deep(.icon)': {
width: '{docus.app.header.icon.size}',
height: '{docus.app.header.icon.size}'
},

'.header-logo': {
'.left &': {
'.has-drawer &': {
display: 'none',
'@lg': {
display: 'block'
}
},
},

'.center &': {
display: 'none',
'.has-drawer &': {
display: 'block',
'@lg': {
display: 'none'
},
},
}
},

header: {
backdropFilter: '{docus.app.header.backdropFilter}',
position: 'sticky',
top: 0,
zIndex: 10,
width: '100%',
borderBottomWidth: '{docus.app.header.borderBottomWidth}',
borderBottomStyle: '{docus.app.header.borderBottomStyle}',
borderBottomColor: '{docus.app.header.borderBottomColor}',
backgroundColor: '{docus.app.header.backgroundColor}',
height: '{docus.app.header.height}',

'&.is-basic-layout.on-top': {
background: 'transparent',
borderColor: 'transparent',
backdropFilter: 'none',
},

'.docs-search-button-desktop': {
display: 'none',
'@lg': {
display: 'flex'
}
},

'.docs-search-button-mobile': {
display: 'flex',
'@lg': {
display: 'none'
}
},

'.header-layout': {
display: 'grid',
height: '100%',
gridTemplateColumns: '{docus.app.header.layout.gridTemplateColumns}',
gap: '{docus.app.header.layout.gap}',
},

'.section': {
display: 'flex',
alignItems: 'center',
flex: 'none',

'&.left': {
gridColumn: '{docus.app.header.layout.left.gridColumn}',
'@lg': {
marginInlineStart: 0
},
},

'&.center': {
gridColumn: '{docus.app.header.layout.center.gridColumn}',
justifyContent: 'center',
flex: '1',
zIndex: '1'
},

'&.right': {
display: 'flex',
gridColumn: '{docus.app.header.layout.right.gridColumn}',
justifyContent: 'flex-end',
alignItems: 'center',
flex: 'none',
marginInlineEnd: 'calc(0px - {space.4})',

'.social-icons': {
display: 'none',
'@md': {
display: 'flex',
alignItems: 'center',
}
}
}
}
}
})
</style>
Loading