diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 7bcc18cb4..856aa3bad 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,9 +4,12 @@
-
+
-
+
+
+
+
@@ -17,7 +20,7 @@
@@ -83,7 +86,7 @@
"WebServerToolWindowFactoryState": "false",
"code.cleanup.on.save": "true",
"dart.analysis.tool.window.visible": "false",
- "git-widget-placeholder": "feature/new-updates",
+ "git-widget-placeholder": "feature/config-1.1",
"kotlin-language-version-configured": "true",
"last_opened_file_path": "/Users/ildartimerbaev/Work2/ecency-vision-nextjs/src/app",
"node.js.detected.package.eslint": "true",
@@ -375,14 +378,8 @@
-
-
-
- 1723578660785
-
-
-
- 1723578660786
+
+
@@ -768,7 +765,15 @@
1725477342171
-
+
+
+ 1725477682647
+
+
+
+ 1725477682647
+
+
@@ -789,7 +794,6 @@
-
@@ -814,7 +818,8 @@
-
+
+
diff --git a/src/config/.gitignore b/src/config/.gitignore
index d344ba6b0..c3c165302 100644
--- a/src/config/.gitignore
+++ b/src/config/.gitignore
@@ -1 +1 @@
-config.json
+config.ts
diff --git a/src/config/config.template.json b/src/config/config.template.json
deleted file mode 100644
index f5f693e85..000000000
--- a/src/config/config.template.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "visionConfig": {
- "privateMode": true,
- "features": {
- "communities": {
- "rewards": {
- "enabled": true
- }
- },
- "hiveWallet": {
- "receivedList": {
- "enabled": true
- }
- },
-
- "polls": {
- "creating": {
- "enabled": true
- }
- }
- },
- "thirdPartyFeatures": {
- "threeSpeak": {
- "uploading": {
- "enabled": true
- }
- }
- },
- "visionFeatures": {
- "perks": {
- "enabled": true
- },
- "userActivityTracking": {
- "enabled": true
- },
- "points": {
- "enabled": true
- },
- "decks": {
- "enabled": true
- },
- "notifications": {
- "enabled": true,
- "push": {
- "enabled": true
- }
- },
- "imageServer": {
- "enabled": true
- },
- "favourites": {
- "enabled": true
- },
- "bookmarks": {
- "enabled": true
- },
- "entries": {
- "rawContent": {
- "enabled": true
- }
- },
- "referrals": {
- "enabled": true
- },
- "gallery": {
- "enabled": true
- },
- "drafts": {
- "enabled": true
- },
- "schedules": {
- "enabled": true
- },
- "fragments": {
- "enabled": true
- },
- "discover": {
- "leaderboard": {
- "enabled": true
- },
- "curation": {
- "enabled": true
- }
- },
- "promotions": {
- "enabled": true
- },
- "editHistory": {
- "enabled": true
- }
- },
- "service": {
- "hsClientId": "ecency.app",
- "hsClientSecret": ""
- }
- }
-}
\ No newline at end of file
diff --git a/src/config/config.template.ts b/src/config/config.template.ts
new file mode 100644
index 000000000..aea05bbfa
--- /dev/null
+++ b/src/config/config.template.ts
@@ -0,0 +1,99 @@
+const CONFIG = {
+ visionConfig: {
+ privateMode: true,
+ features: {
+ communities: {
+ rewards: {
+ enabled: true
+ }
+ },
+ hiveWallet: {
+ receivedList: {
+ enabled: true
+ }
+ },
+
+ polls: {
+ creating: {
+ enabled: true
+ }
+ }
+ },
+ thirdPartyFeatures: {
+ threeSpeak: {
+ uploading: {
+ enabled: true
+ }
+ }
+ },
+ visionFeatures: {
+ perks: {
+ enabled: true
+ },
+ userActivityTracking: {
+ enabled: true
+ },
+ points: {
+ enabled: true
+ },
+ decks: {
+ enabled: true
+ },
+ notifications: {
+ enabled: true,
+ push: {
+ enabled: true
+ }
+ },
+ imageServer: {
+ enabled: true
+ },
+ favourites: {
+ enabled: true
+ },
+ bookmarks: {
+ enabled: true
+ },
+ entries: {
+ rawContent: {
+ enabled: true
+ }
+ },
+ referrals: {
+ enabled: true
+ },
+ gallery: {
+ enabled: true
+ },
+ drafts: {
+ enabled: true
+ },
+ schedules: {
+ enabled: true
+ },
+ fragments: {
+ enabled: true
+ },
+ discover: {
+ leaderboard: {
+ enabled: true
+ },
+ curation: {
+ enabled: true
+ }
+ },
+ promotions: {
+ enabled: true
+ },
+ editHistory: {
+ enabled: true
+ }
+ },
+ service: {
+ hsClientId: process.env.NEXT_PUBLUC_HS_CLIENT_ID || "ecency.app",
+ hsClientSecret: process.env.NEXT_PUBLIC_HS_CLIENT_SECRET || ""
+ }
+ }
+};
+
+export default CONFIG;
diff --git a/src/config/index.tsx b/src/config/index.tsx
index 2f22f7ad2..a66a5193a 100644
--- a/src/config/index.tsx
+++ b/src/config/index.tsx
@@ -1,4 +1,4 @@
-import config from "./config.json";
+import config from "./config";
import { ComponentType, memo, PropsWithChildren, ReactNode } from "react";
import { QueryClient, useMutation, UseMutationOptions } from "@tanstack/react-query";
import type { DefaultError } from "@tanstack/query-core";
diff --git a/src/core/global-store/modules/config-module.ts b/src/core/global-store/modules/config-module.ts
index c9a38cf5f..e957e8b2b 100644
--- a/src/core/global-store/modules/config-module.ts
+++ b/src/core/global-store/modules/config-module.ts
@@ -1,4 +1,4 @@
-import config from "../../../config/config.json";
+import config from "../../../config/config";
export function createConfigState() {
if (!config.visionConfig) {