Skip to content

Dev #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 13, 2023
Merged

Dev #32

Changes from 1 commit
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
Prev Previous commit
Update docs
  • Loading branch information
webdevnerdstuff committed Nov 13, 2023
commit ee84bc34312f86de257a7c85e23928e7fc16c5be
65 changes: 32 additions & 33 deletions src/documentation/sections/SlotsSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@
Slot for the copy button inside the code block of the component.
</td>
</tr>
<!-- <tr>
<tr>
<td colspan="2">
<VCodeBlock
:code="copyButtonSlotsCode"
:highlightjs="codeBlockSettings.plugin === 'highlightjs'"
:highlightjs="selectedLibrary.id === 'highlightjs'"
lang="typescript"
:prismjs="codeBlockSettings.plugin === 'prismjs'"
:theme="codeBlockSettings.theme"
:prismjs="selectedLibrary.id === 'prismjs'"
:theme="selectedTheme"
/>
</td>
</tr> -->
</tr>

<!-- ================================================== Label -->
<tr
Expand All @@ -76,17 +76,17 @@
Slot for the label of the component.
</td>
</tr>
<!-- <tr>
<tr>
<td colspan="2">
<VCodeBlock
:code="labelSlotsCode"
:highlightjs="codeBlockSettings.plugin === 'highlightjs'"
:highlightjs="selectedLibrary.id === 'highlightjs'"
lang="typescript"
:prismjs="codeBlockSettings.plugin === 'prismjs'"
:theme="codeBlockSettings.theme"
:prismjs="selectedLibrary.id === 'prismjs'"
:theme="selectedTheme"
/>
</td>
</tr> -->
</tr>

<!-- ================================================== Tabs -->
<tr
Expand All @@ -107,17 +107,17 @@
Slot for the tabs of the component.
</td>
</tr>
<!-- <tr>
<tr>
<td colspan="2">
<VCodeBlock
:code="tabsSlotsCode"
:highlightjs="codeBlockSettings.plugin === 'highlightjs'"
:highlightjs="selectedLibrary.id === 'highlightjs'"
lang="typescript"
:prismjs="codeBlockSettings.plugin === 'prismjs'"
:theme="codeBlockSettings.theme"
:prismjs="selectedLibrary.id === 'prismjs'"
:theme="selectedTheme"
/>
</td>
</tr> -->
</tr>
</tbody>
</v-table>
</v-card>
Expand All @@ -127,17 +127,11 @@

<script setup>
import { useTheme } from 'vuetify';
// import { useCoreStore } from '@/stores/index';

// const props = defineProps({
// codeBlockOptions: {
// required: true,
// type: Object,
// },
// });

// const codeBlockSettings = computed(() => props.codeBlockOptions);
// const store = useCoreStore();
const selectedLibrary = inject('selectedLibrary');
const selectedTheme = inject('selectedTheme');

const classes = inject('classes');
const theme = useTheme();
const isDark = ref(true);
Expand All @@ -151,15 +145,20 @@ const rowClass = computed(() => {
return isDark.value ? 'bg-grey-darken-3' : 'bg-grey-lighten-3';
});

// const copyButtonSlotsCode = `{

// }`;
// const labelSlotsCode = `{

// }`;
// const tabsSlotsCode = `{

// }`;
const copyButtonSlotsCode = `{
copyCode: () => void,
copyStatus: Ref<string>,
runCode: () => void,
}`;
const labelSlotsCode = `{
copyCode: () => void,
copyStatus: Ref<string>,
}`;
const tabsSlotsCode = `{
copyCode: () => void,
copyStatus: Ref<string>,
runCode: () => void,
}`;


</script>
Expand Down