Skip to content

Commit

Permalink
abandonned attempt at adding export
Browse files Browse the repository at this point in the history
  • Loading branch information
couleurm committed Mar 21, 2024
1 parent f60ba0e commit a1776a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ watch(
const params = new URLSearchParams({
tweak: v.Name,
});
window.history.replaceState('TweakList-UI', '', `?${params.toString()}`);
console.log(params);
window.history.replaceState('TweakList-UI', '', `#${params.toString()}`);
}
);
9 changes: 9 additions & 0 deletions src/components/columns/Categories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@
@click="store.state.selectedCategory = 'Uncategorized'"
:selected="store.state.selectedCategory === 'Uncategorized'"
></Category>
<Separator></Separator>
<div class="export">
<button @click="displayAlert">Export</button>
</div>
</div>

</template>

<script lang="ts" setup>
Expand All @@ -56,6 +61,10 @@ import store from '@/store';
import { Category as ICategory } from '@/types';
import { ref, watch } from 'vue';
function displayAlert() {
console.log(store)
}
const knownCategoriesIcons: { [key: string]: string } = {
Games: 'controller',
Programs: 'package-variant-closed'
Expand Down

0 comments on commit a1776a3

Please sign in to comment.