Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
eba74fc
Update rate-limiter usage
onur-ozkan Sep 14, 2020
2573f1c
Get rid of Category logic
onur-ozkan Sep 14, 2020
49e52e6
Create tags entity and repository
onur-ozkan Sep 15, 2020
6bb5047
Update createTitle func of Title module
onur-ozkan Sep 15, 2020
7dd8e69
Update nestjs-rate-limiter version to 2.5.0
onur-ozkan Sep 20, 2020
82e2b4e
Create basic infrastructure of Tag module
onur-ozkan Sep 20, 2020
b2fa0f4
[server] Update nestjs-rate-limiter version
onur-ozkan Sep 20, 2020
395c1d1
[server] Upgrade nestjs-rate-limiter version
onur-ozkan Sep 23, 2020
38b332e
[server] Add new field 'popularity_ratio' to TagsEntity
onur-ozkan Sep 23, 2020
5671019
[server] Code optimization on Title-Tag modules
onur-ozkan Sep 23, 2020
7670513
Implement popularity calculation logic of tags
onur-ozkan Sep 27, 2020
05f52e5
Add 'Read one by id' logic to Tag module
onur-ozkan Sep 27, 2020
184fb8b
Add Delete operation to Tag module
onur-ozkan Sep 27, 2020
ced2fe4
[server] Finalize getTrendingTags()
onur-ozkan Sep 28, 2020
1eb772b
[server] some optimizations
onur-ozkan Sep 28, 2020
bc54a9c
[client] Add new package 'string-to-color'
onur-ozkan Sep 28, 2020
b1e2b8e
[server] Update tags on titleUpdate
onur-ozkan Sep 30, 2020
8a83ee0
Update tag style and fetch trendingTags
onur-ozkan Oct 1, 2020
c74bb8b
Add new block for Tag searching
onur-ozkan Oct 2, 2020
593856d
[server] Create tag/search endpoint
onur-ozkan Oct 3, 2020
0d7fac0
Create new component TagSearchingBlock
onur-ozkan Oct 3, 2020
a80683a
[client] version upgrade to 0.4-alpha
onur-ozkan Oct 3, 2020
2d25c1a
[client] Optimize TagSearchingBlock
onur-ozkan Oct 3, 2020
5af975b
[client] Upgrade antd version to 4.6
onur-ozkan Oct 4, 2020
82438f2
[client] Delete filter modal on feed flow
onur-ozkan Oct 4, 2020
fe182e9
[server] Update dependency versions
onur-ozkan Oct 4, 2020
c49de6a
[client] Update dependency versions
onur-ozkan Oct 4, 2020
fd75a9e
[client] update feed creating screens
onur-ozkan Oct 5, 2020
d42c9d0
[client] optimize validatio on feed creation
onur-ozkan Oct 7, 2020
6cf2e3c
[client] style & type optimizations
onur-ozkan Oct 8, 2020
e65fc2b
[client] Update tag & category types
onur-ozkan Oct 10, 2020
bc080c2
[client] replace whole category feature with tags
onur-ozkan Oct 10, 2020
50b4590
[server] Upgrade nestjs-rate-limiter version to v2.5.6
onur-ozkan Oct 10, 2020
356c46f
[client] Update structure of less files
onur-ozkan Oct 11, 2020
b7240ec
[client] create environment variables & update constants
onur-ozkan Oct 11, 2020
d5b3615
[client] create enum for Roles
onur-ozkan Oct 11, 2020
23e307d
[client] update component folders
onur-ozkan Oct 11, 2020
2c24338
[client] add new package 'next-i18next'
onur-ozkan Oct 11, 2020
a7fb176
[client] update stringToColor importing sectence
onur-ozkan Oct 11, 2020
492b43e
[client] implement i18n to login page
onur-ozkan Oct 12, 2020
ed60cee
[client] Add localization on sign-up page
onur-ozkan Oct 13, 2020
4c8ec5b
[client] Add localization on auth layout
onur-ozkan Oct 13, 2020
a5dc41b
Merge branch 'ref/categories-to-tags' into wip-categories-to-tags
linkors Oct 19, 2022
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
2 changes: 2 additions & 0 deletions client/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
API_URL=http://localhost:3000/api
SOCKET_URL=http://localhost:3000
2 changes: 2 additions & 0 deletions client/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
API_URL=https://server.feednext.io/api
SOCKET_URL=https://server.feednext.io
14 changes: 2 additions & 12 deletions client/config/constants.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
// APP
export const API_URL = process.env.NODE_ENV === 'production' ? 'https://server.feednext.io/api' : 'http://localhost/api'
export const SOCKET_URL = process.env.NODE_ENV === 'production' ? 'https://server.feednext.io' : 'http://localhost'

// ROLES
export const Guest = -1
export const User = 0
export const JuniorAuthor = 1
export const MidLevelAuthor = 2
export const SeniorAuthor = 3
export const Admin = 4
export const SuperAdmin = 5
export const API_URL = process.env.API_URL
export const SOCKET_URL = process.env.SOCKET_URL
File renamed without changes.
12 changes: 12 additions & 0 deletions client/i18n.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import NextI18Next from "next-i18next";

const NextI18NextInstance = new NextI18Next({
defaultLanguage: "en",
defaultNS: "loginPage",
otherLanguages: ["tr"],
localePath: typeof window === "undefined" ? "public/locales" : "locales"
})

export const { appWithTranslation, withTranslation } = NextI18NextInstance

export default NextI18NextInstance;
11 changes: 10 additions & 1 deletion client/next.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
const webpack = require('webpack')

const withCSS = require('@zeit/next-css')
const withLess = require('@zeit/next-less')
const lessToJS = require('less-vars-to-js')

const fs = require('fs')
const path = require('path')
const themeVariables = lessToJS(fs.readFileSync(path.resolve(__dirname, './src/styles/antd/override.less'), 'utf8'))
const themeVariables = lessToJS(fs.readFileSync(path.resolve(__dirname, './config/override.less'), 'utf8'))

const { nextI18NextRewrites } = require('next-i18next/rewrites')
const localeSubpaths = {}

module.exports = withCSS(withLess({
rewrites: async () => nextI18NextRewrites(localeSubpaths),
publicRuntimeConfig: {
localeSubpaths,
},
lessLoaderOptions: {
javascriptEnabled: true,
modifyVars: themeVariables // make your antd custom effective
Expand Down
Loading