Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update text #18

Merged
merged 8 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- name: Start export latest wiki pages
env:
API_BASE_URL: https://m.lbkrs.com
API_SECRETS_TOKEN: ${{ secrets.API_SECRETS_TOKEN }}
run: |
bun install
cd scripts/wiki && bun run sync-wikis.ts
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/learn/capex-200000.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'

# Capex

<ArticleMeta id={200000} updatedAt={'2024-05-17 19:14:23'} />
<ArticleMeta id={200000} updatedAt={'2024-06-19 14:56:00'} />
<div className='border-solid border-b border-t-0 my-4 border-[var(--ifm-color-gray-300)]' />

<p>Capital Expenditure (Capex) refers to the funds a company spends on acquiring, maintaining, or improving its fixed assets, such as buildings, machinery, equipment, or technology. These expenditures are considered investments in the long-term growth and productive capacity of the business.&nbsp;</p><p>Capex is typically categorized as a capital budget item, which is a significant purchase that contributes to the company's value over time. It is distinct from operational expenses, which cover the ongoing costs of running a business, such as salaries, rent, and utilities. Capex is often used to expand a company's capabilities, modernize its facilities, or increase its production capacity.</p>
4 changes: 2 additions & 2 deletions docs/learn/fomc-meeting-106928.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'

# FOMC Meeting

<ArticleMeta id={106928} updatedAt={'2023-12-12 08:20:21'} />
<ArticleMeta id={106928} updatedAt={'2024-06-18 16:05:51'} />
<div className='border-solid border-b border-t-0 my-4 border-[var(--ifm-color-gray-300)]' />

The FOMC meeting is the abbreviation of the Federal Open Market Committee, which is the decision-making body of the Federal Reserve System responsible for formulating and implementing monetary policy. The FOMC meeting is a regular meeting held by committee members to discuss and decide on interest rate policy, money supply, and other matters related to monetary policy. The decisions made at FOMC meetings have a significant impact on global financial markets and the economy, and therefore attract attention from various sectors.
<p>The FOMC meeting is the abbreviation of the Federal Open Market Committee, which is the decision-making body of the Federal Reserve System responsible for formulating and implementing monetary policy. The FOMC meeting is a regular meeting held by committee members to discuss and decide on interest rate policy, money supply, and other matters related to monetary policy. The decisions made at FOMC meetings have a significant impact on global financial markets and the economy, and therefore attract attention from various sectors.</p>
2 changes: 1 addition & 1 deletion docs/learn/opex-200001.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'

# Opex

<ArticleMeta id={200001} updatedAt={'2024-05-17 19:22:16'} />
<ArticleMeta id={200001} updatedAt={'2024-06-19 13:49:49'} />
<div className='border-solid border-b border-t-0 my-4 border-[var(--ifm-color-gray-300)]' />

<p>Operating Expenditure (Opex) refers to the ongoing costs incurred by a business in the regular course of its operations. These costs are necessary for the day-to-day functioning of the company and include expenses such as salaries, rent, utilities, office supplies, marketing, and routine maintenance.</p><p>&nbsp;Unlike capital expenditures (Capex), which are investments in long-term assets that are expected to generate future benefits and are typically depreciated over time, Opex represents the recurring expenses that must be paid to keep the business running. Opex is often categorized as a recurring cost and is essential for the short-term operations of a company. It is a key component in financial planning and budgeting, and it helps businesses manage their cash flow and profitability.</p>
18 changes: 7 additions & 11 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const darkCodeTheme = require("prism-react-renderer/themes/vsDark");
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
import process from "node:process";
import { baseURLPrefix } from "./src/constant";

const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const openapiDomain = "https://open.longportapp.com";
Expand All @@ -19,12 +18,12 @@ const ossEnv = isDev ? "/" : proxy;
const targetPortalPath = proxy === "canary" ? "https://m.longbridge.xyz" : "https://m.lbkrs.com";
const localAPIProxyPath = "/dev-proxy";
const apiProxyUrl = `${isDev ? localAPIProxyPath : targetPortalPath}/api/forward`;
const portAIProxyUrl = isDev ? 'http://localhost:4040/dev-proxy' : undefined;
const portAIProxyUrl = isDev ? "http://localhost:4040/dev-proxy" : undefined;

const config: Config = {
title: "LongPort wiki",
title: "LongPort",
url: "https://longportapp.com",
baseUrl: baseURLPrefix,
baseUrl: "/",
organizationName: "longportapp",
projectName: "wiki-docs",
baseUrlIssueBanner: false,
Expand Down Expand Up @@ -96,8 +95,6 @@ const config: Config = {
};
}
],


presets: [
[
"classic",
Expand All @@ -117,16 +114,17 @@ const config: Config = {
return await items.map((item) => {
return item.url = item.url
.replace("zh-CN/zh-CN", "zh-CN")
.replace("zh-CN/en/learn", "zh-CN/learn")
.replace("en/en", "en")
.replace("zh-HK/zh-HK", "zh-HK");
.replace("zh-HK/zh-HK", "zh-HK")
.replace("zh-HK/en/learn", "zh-HK/learn");
});
}
}

} satisfies Preset.Options
]
],

themeConfig:
/** @type {import("@docusaurus/preset-classic").ThemeConfig} */
{
Expand Down Expand Up @@ -157,9 +155,7 @@ const config: Config = {
{
to: openapiDomain,
position: "left",
target: "_self",
label: "开发者认证",
activeBaseRegex: "^/$"
label: "开发者认证"
},
{
to: communityDomain,
Expand Down
6 changes: 6 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"meta_title": {
"message": "LongPort - Research and trade with high-value investors"
},
"meta_desc": {
"message": "LongPort is a public platform comprised of multiple brokerage users, offering rich multi-market trading capabilities, investment research tools and a high information density community discussion board."
},
"breadcrumbs.nav.home": {
"message": "Home"
},
Expand Down
8 changes: 7 additions & 1 deletion i18n/zh-CN/code.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"meta_title": {
"message": "LongPort 与高价值投资者一起研究和交易"
},
"meta_desc": {
"message": "LongPort 是一个由多家券商用户构成的公共平台,具备丰富的多市场交易能力、研究工具、以及一个高信息密度的投资者交流社区"
},
"breadcrumbs.nav.home": {
"message": "首页"
},
Expand Down Expand Up @@ -98,7 +104,7 @@
"description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.docs.tagDocListPageTitle": {
"message": "{nDocsTagged}{tagName}",
"message": "{nDocsTagged}[{tagName}]",
"description": "The title of the page for a docs tag"
},
"theme.docs.versionBadge.label": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'

# 资本支出

<ArticleMeta id={200000} updatedAt={'2024-05-17 19:14:23'} />
<ArticleMeta id={200000} updatedAt={'2024-06-19 14:56:00'} />
<div className='border-solid border-b border-t-0 my-4 border-[var(--ifm-color-gray-300)]' />

<p>资本支出(Capital expenditure 或 CapEx)在会计学上是指为了获得固定资产,或为了延长固定资产耐用年限而流出的费用。 在会计记账时,资本支出并不是在支出的当年全部计入费用,而是按照折旧的方式计入每一年的费用。</p>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'

# 联邦公开市场委员会会议

<ArticleMeta id={106928} updatedAt={'2023-12-12 08:20:21'} />
<ArticleMeta id={106928} updatedAt={'2024-06-18 16:05:51'} />
<div className='border-solid border-b border-t-0 my-4 border-[var(--ifm-color-gray-300)]' />

FOMC 会议是美联储货币政策委员会(Federal Open Market Committee)的简称。FOMC 是美国联邦储备系统的决策机构,负责制定和执行货币政策。FOMC 会议是委员会成员定期举行的会议,讨论和决定利率政策、货币供应量和其他与货币政策相关的事项。FOMC 会议的决策对于全球金融市场和经济都具有重要影响,因此受到各界关注。
<p>FOMC 会议是美联储货币政策委员会(Federal Open Market Committee)的简称。FOMC 是美国联邦储备系统的决策机构,负责制定和执行货币政策。FOMC 会议是委员会成员定期举行的会议,讨论和决定利率政策、货币供应量和其他与货币政策相关的事项。FOMC 会议的决策对于全球金融市场和经济都具有重要影响,因此受到各界关注。</p>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'

# 运营支出

<ArticleMeta id={200001} updatedAt={'2024-05-17 19:22:16'} />
<ArticleMeta id={200001} updatedAt={'2024-06-19 13:49:49'} />
<div className='border-solid border-b border-t-0 my-4 border-[var(--ifm-color-gray-300)]' />

<p style={{marginLeft:"0px"}}>运营支出(<span style={{backgroundColor:"rgb(255,255,255)",color:"rgb(6,6,7)"}}>Operating Expenditure 或 Opex</span>)它指的是公司在日常运营中产生的费用,这些费用是公司为了维持其正常运作而必须支付的。Opex 包括了员工工资、租金、水电费、办公用品、营销费用、日常维修费用等。</p><p style={{marginLeft:"0px"}}>与 Capex 不同,Opex 通常不包括购买或改善固定资产的支出,因为这些支出被视为长期投资,归类为资本支出。简单来说,Opex 可以看作是公司为了保持业务运转而必须支付的短期费用,而 Capex 则是公司为了长期发展而进行的资本投资。</p>
<p style={{marginLeft:"0px"}}>运营支出(<span style={{backgroundColor:"rgb(255,255,255)",color:"rgb(6,6,7)"}}>Operating Expenditure 或 Opex</span>)它指的是公司在日常运营中产生的费用,这些费用是公司为了维持其正常运作而必须支付的。Opex 包括了员工工资、租金、水电费、办公用品、营销费用、日常维修费用等。</p><p style={{marginLeft:"0px"}}>与 Capex 不同,Opex 通常不包括购买或改善固定资产的支出,因为这些支出被视为长期投资,归类为资本支出。简单来说, Opex 可以看作是公司为了保持业务运转而必须支付的短期费用,而 Capex 则是公司为了长期发展而进行的资本投资。</p>
6 changes: 6 additions & 0 deletions i18n/zh-HK/code.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"meta_title": {
"message": "LongPort 與高價值投資者一起研究和交易"
},
"meta_desc": {
"message": "LongPort 是一個由多家券商用戶構成的公共平台,具備豐富的多市場交易能力、研究工具、以及一個高信息密度的投資者交流社區"
},
"breadcrumbs.nav.home": {
"message": "首頁"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'

# 資本支出

<ArticleMeta id={200000} updatedAt={'2024-05-17 19:14:23'} />
<ArticleMeta id={200000} updatedAt={'2024-06-19 14:56:00'} />
<div className='border-solid border-b border-t-0 my-4 border-[var(--ifm-color-gray-300)]' />

<p>資本支出(Capital expenditure 或 CapEx)在會計學上是指為了獲得固定資產,或為了延長固定資產耐用年限而流出的費用。 在會計記賬時,資本支出並不是在支出的當年全部計入費用,而是按照折舊的方式計入每一年的費用。</p>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'

# 聯邦公開市場委員會會議

<ArticleMeta id={106928} updatedAt={'2023-12-12 08:20:21'} />
<ArticleMeta id={106928} updatedAt={'2024-06-18 16:05:51'} />
<div className='border-solid border-b border-t-0 my-4 border-[var(--ifm-color-gray-300)]' />

FOMC 會議是美聯儲貨幣政策委員會(Federal Open Market Committee)的簡稱。FOMC 是美國聯邦儲備系統的決策機構,負責制定和執行貨幣政策。FOMC 會議是委員會成員定期舉行的會議,討論和決定利率政策、貨幣供應量和其他與貨幣政策相關的事項。FOMC 會議的決策對於全球金融市場和經濟都具有重要影響,因此受到各界關注。
<p>FOMC 會議是美聯儲貨幣政策委員會(Federal Open Market Committee)的簡稱。FOMC 是美國聯邦儲備系統的決策機構,負責制定和執行貨幣政策。FOMC 會議是委員會成員定期舉行的會議,討論和決定利率政策、貨幣供應量和其他與貨幣政策相關的事項。FOMC 會議的決策對於全球金融市場和經濟都具有重要影響,因此受到各界關注。</p>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'

# 運營支出

<ArticleMeta id={200001} updatedAt={'2024-05-17 19:22:16'} />
<ArticleMeta id={200001} updatedAt={'2024-06-19 13:49:49'} />
<div className='border-solid border-b border-t-0 my-4 border-[var(--ifm-color-gray-300)]' />

<p style={{marginLeft:"0px"}}>運營支出(<span style={{backgroundColor:"rgb(255,255,255)",color:"rgb(6,6,7)"}}>Operating Expenditure 或 Opex</span>)它指的是公司在日常運營中產生的費用,這些費用是公司為了維持其正常運作而必須支付的。Opex 包括了員工工資、租金、水電費、辦公用品、營銷費用、日常維修費用等。</p><p style={{marginLeft:"0px"}}>與 Capex 不同,Opex 通常不包括購買或改善固定資產的支出,因為這些支出被視為長期投資,歸類為資本支出。簡單來説,Opex 可以看作是公司為了保持業務運轉而必須支付的短期費用,而 Capex 則是公司為了長期發展而進行的資本投資。</p>
<p style={{marginLeft:"0px"}}>運營支出(<span style={{backgroundColor:"rgb(255,255,255)",color:"rgb(6,6,7)"}}>Operating Expenditure 或 Opex</span>)它指的是公司在日常運營中產生的費用,這些費用是公司為了維持其正常運作而必須支付的。Opex 包括了員工工資、租金、水電費、辦公用品、營銷費用、日常維修費用等。</p><p style={{marginLeft:"0px"}}>與 Capex 不同,Opex 通常不包括購買或改善固定資產的支出,因為這些支出被視為長期投資,歸類為資本支出。簡單來説, Opex 可以看作是公司為了保持業務運轉而必須支付的短期費用,而 Capex 則是公司為了長期發展而進行的資本投資。</p>
2 changes: 1 addition & 1 deletion last_updated_at.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1693213611
1718780160
2 changes: 1 addition & 1 deletion scripts/wiki/sync-wikis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function updateLatestWiki(limit = 100) {
console.log("--> after uniq wikis:", wikis.length);
const theLatestWiki = wikis[0];
if (theLatestWiki) {
fetchLastUpdatedValue(theLatestWiki.content_updated_at);
await fetchLastUpdatedValue(theLatestWiki.content_updated_at);
}

wikis.forEach(async (rawWiki) => {
Expand Down
2 changes: 1 addition & 1 deletion scripts/wiki/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import dayjs from "dayjs";
const fs = require("fs");
const path = require("path");

const projectRoot = path.resolve(__dirname, "..", "..", "..");
const projectRoot = path.resolve(__dirname, "..", "..");
const forceRefresh = process.env.FORCE_UPDATE === "true";

export async function fetchLastUpdatedValue(content_updated_at = 0) {
Expand Down
10 changes: 6 additions & 4 deletions src/components/layout/application.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
import React, { FC } from "react";
import { translate } from "@docusaurus/Translate";

const ApplicationLayout: FC<{ children: React.ReactNode }> = ({ children }) => {
const { siteConfig } = useDocusaurusContext();
return (
<Layout title={`${siteConfig.title}`} description="LongPort Wiki">
<Layout
title={translate({ id: "meta_title" })}
description={translate({ id: "meta_desc" })}
>
<div className="max-w-screen-xl m-auto px-4 md:px-0 wiki-article-content">
{children}
</div>
</Layout>
)
);
};
export default ApplicationLayout;
1 change: 0 additions & 1 deletion src/constant.ts

This file was deleted.

Loading