This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.reddit.com/r/Unity3D/comments/1epw3u6/need_some_help_with_scroll_view_auto_scroll/ | |
using System.Collections; | |
using System.Collections.Generic; | |
using TMPro; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
public class ScrollRectAutoScroll : MonoBehaviour |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section> | |
<h1>Hello World in New Project</h1> | |
<Button label="Button Label in New Project" type="primary" size="lg" /> | |
</section> | |
</template> | |
<script> | |
import { defineComponent } from "vue"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineConfig } from 'vite' | |
import vue from '@vitejs/plugin-vue' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [vue()], | |
css: { | |
preprocessorOptions: { | |
scss: { | |
additionalData: ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"packages": [ | |
"dist" | |
], | |
"version": "independent" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export { default as Button } from './components/Button/Button.vue' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//.src/assets/styles/_flex.scss | |
.d { | |
&-iflex { | |
display: inline-flex !important; | |
} | |
&-flex { | |
display: flex !important; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//.tokens/properties/colors | |
{ | |
"color": { | |
"success": { | |
"darkest" : { | |
"value": "#004020", | |
"comment": "the darkest sucess color" | |
}, | |
"dark" : { | |
"value": "#007339", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>{{ text }}</h1> | |
</template> | |
<script> | |
import { defineComponent } from "vue"; | |
export default defineComponent({ | |
props: { | |
text: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vue from 'rollup-plugin-vue' | |
import { terser } from 'rollup-plugin-terser' | |
import postcss from 'rollup-plugin-postcss' | |
module.exports = [ | |
{ | |
input: 'src/index.js', | |
output: [ | |
{ | |
sourcemap: true, |
NewerOlder