File tree Expand file tree Collapse file tree 6 files changed +57
-9
lines changed
Expand file tree Collapse file tree 6 files changed +57
-9
lines changed Original file line number Diff line number Diff line change 1+ name : Release Build
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build-and-release :
10+ runs-on : ubuntu-latest
11+ defaults :
12+ run :
13+ working-directory : ultroid
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Setup Node.js
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : ' 20'
23+ cache : ' npm'
24+ cache-dependency-path : ultroid/package-lock.json
25+
26+ - name : Install dependencies
27+ run : npm ci
28+
29+ - name : Build
30+ run : npm run build
31+
32+ - name : Create Release
33+ id : create_release
34+ uses : softprops/action-gh-release@v1
35+ with :
36+ files : |
37+ ultroid/dist/**/*
38+ draft : false
39+ prerelease : false
40+ generate_release_notes : true
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1616# next.js
1717/.next /
1818/out /
19+ dist /
1920
2021# production
2122/build
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ export default function Settings() {
323323 < TextArea
324324 value = { setting . value }
325325 onChange = { ( value ) => {
326- value . stopPropagation ( ) ;
326+ // value.stopPropagation();
327327 handleSettingChange ( sectionIndex , setting . key , value ) ;
328328 } }
329329 placeholder = { setting . label }
@@ -333,7 +333,7 @@ export default function Settings() {
333333 < TagInput
334334 value = { setting . value }
335335 onChange = { ( value ) => {
336- value . stopPropagation ( ) ;
336+ // value.stopPropagation();
337337 handleSettingChange ( sectionIndex , setting . key , value ) ;
338338 } }
339339 />
@@ -342,7 +342,7 @@ export default function Settings() {
342342 < AvatarUpload
343343 value = { setting . value }
344344 onChange = { ( value ) => {
345- value . stopPropagation ( ) ;
345+ // value.stopPropagation();
346346 handleSettingChange ( sectionIndex , setting . key , value ) ;
347347 } }
348348 />
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ const compat = new FlatCompat({
1111
1212const eslintConfig = [
1313 ...compat . extends ( "next/core-web-vitals" , "next/typescript" ) ,
14+ {
15+ rules : {
16+ "@typescript-eslint/no-explicit-any" : "off" ,
17+ "@typescript-eslint/no-unused-vars" : "off" ,
18+ "@typescript-eslint/no-empty-object-type" : "off" ,
19+ } ,
20+ } ,
1421] ;
1522
1623export default eslintConfig ;
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ const nextConfig: NextConfig = {
55
66 unoptimized : true ,
77 } ,
8+ output : "export" ,
9+ distDir : "dist" ,
810 /* config options here */
911} ;
1012
Original file line number Diff line number Diff line change @@ -36,18 +36,14 @@ const getApiUrl = async (): Promise<string> => {
3636 // Store fallback in window object
3737 if ( typeof window !== 'undefined' ) {
3838 window . __ULTROID_CONFIG__ = {
39- apiUrl : fallbackUrl
39+ apiUrl : fallbackUrl as string
4040 } ;
4141 }
4242
43- return fallbackUrl ;
43+ return fallbackUrl as string ;
4444 }
4545} ;
4646
47- // For Telegram Web App, we need to use HTTPS in production
48- // but for local development, we'll use HTTP
49- const BASE_URL = await getApiUrl ( ) ;
50-
5147export type UserData = {
5248 name : string ;
5349 bio : string ;
You can’t perform that action at this time.
0 commit comments