-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Обновлен tailwind, продолжаю работы над Telegram Mini App
- Loading branch information
1 parent
6a854a2
commit 7b3fb1d
Showing
12 changed files
with
726 additions
and
1,093 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<ul | ||
class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 mx-auto" | ||
v-on="{ click: capture }" | ||
> | ||
<li class="relative" v-for="video in videos" v-bind:key="video.title"> | ||
<VideoWallItem ref="videoWallItem" :video="video" /> | ||
</li> | ||
</ul> | ||
</template> | ||
<script> | ||
import VideoWallItem from "./VideoWallItem.vue"; | ||
import videos from "../videos"; | ||
export default { | ||
components: { | ||
VideoWallItem, | ||
}, | ||
data() { | ||
return { | ||
videos, | ||
}; | ||
}, | ||
mounted() { | ||
window.Telegram.WebApp.ready(); | ||
window.Telegram.WebApp.MainButton.setParams({ text: "Поделиться" }); | ||
window.Telegram.WebApp.MainButton.show(); //show telegram btn | ||
window.Telegram.WebApp.MainButton.onClick(this.capture); | ||
}, | ||
methods: { | ||
async capture() { | ||
// window.Telegram.WebApp.MainButton.onClick(buttonOn) //set func on main button click | ||
// window.Telegram.WebApp.MainButton.setParams({ 'text': 'АААА' }); | ||
// window.Telegram.WebApp.MainButton.show() //show telegram btn | ||
// console.log(window.Telegram.WebApp.WebAppInitData); | ||
window.Telegram.WebApp.HapticFeedback.notificationOccurred("success"); | ||
window.Telegram.WebApp.shareToStory( | ||
"https://snowcam.vantonkz.keenetic.pro/android-chrome-512x512.png", | ||
{ | ||
text: "aaaa", | ||
widget_link: "https://snowcam.vantonkz.keenetic.pro", | ||
}, | ||
); | ||
// if (await this.navShare(dataURI) === false) { | ||
// } | ||
}, | ||
}, | ||
}; | ||
</script> |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@import "tailwindcss"; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { createApp } from "vue"; | ||
import "./style.css"; | ||
import Tma from "./components/Tma.vue"; | ||
import httpPlugin from "./http"; | ||
|
||
const app = createApp(Tma); | ||
app.use(httpPlugin); | ||
app.mount("#app"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export default [ | ||
{ | ||
title: "Ледник Богдановича", | ||
description: "Верхняя станция", | ||
src: "https://ipcam.kz/cam6/index.m3u8", | ||
poster: "/previews/3212b47c65ccc0cb9759f5c08632c563.jpg", | ||
}, | ||
{ | ||
title: "Средняя станция", | ||
description: "Средняя станция", | ||
src: "https://ipcam.kz/cam5/index.m3u8", | ||
poster: "/previews/ffa10e45b1d87ab0aa8796bc7969046c.jpg", | ||
}, | ||
{ | ||
title: "Подъемник", | ||
description: "Базовая станция", | ||
src: "https://ipcam.kz/cam1/index.m3u8", | ||
poster: "/previews/197f1dde9a2c929cca5496f225cc2d62.jpg", | ||
}, | ||
{ | ||
title: "Бугель", | ||
description: "Базовая станция", | ||
src: "https://ipcam.kz/cam2/index.m3u8", | ||
poster: "/previews/d5361ff25a96271df9ac614d9138806a.jpg", | ||
}, | ||
]; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!doctype html> | ||
<html lang="ru"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> | ||
<meta name="theme-color" content="#0f172a" /> | ||
<meta name="mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | ||
<link rel="manifest" href="/site.webmanifest"> | ||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#0f172a"> | ||
<meta name="apple-mobile-web-app-title" content="SnowCam"> | ||
<meta name="application-name" content="SnowCam"> | ||
<meta name="msapplication-TileColor" content="#0f172a"> | ||
<meta name="theme-color" content="#0f172a"> | ||
|
||
<title>SnowCam</title> | ||
<link | ||
href="/src/style.css" | ||
rel="preload" | ||
as="style" | ||
onload="this.rel='stylesheet'" | ||
/> | ||
<noscript><link rel="stylesheet" href="/src/style.css" /></noscript> | ||
<script src="https://telegram.org/js/telegram-web-app.js?56"></script> | ||
</head> | ||
|
||
<body | ||
class="antialiased text-slate-400 bg-slate-900" | ||
> | ||
<div id="app"></div> | ||
<script type="module" src="src/tma.js"></script> | ||
<!-- Yandex.Metrika counter --> | ||
<script type="text/javascript" > | ||
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; | ||
m[i].l=1*new Date(); | ||
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} | ||
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) | ||
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); | ||
|
||
ym(95899849, "init", { | ||
clickmap:true, | ||
trackLinks:true, | ||
accurateTrackBounce:true, | ||
webvisor:true | ||
}); | ||
</script> | ||
<noscript><div><img src="https://mc.yandex.ru/watch/95899849" style="position:absolute; left:-9999px;" alt="" /></div></noscript> | ||
<!-- /Yandex.Metrika counter --> | ||
</body> | ||
</html> |
This file contains 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