refactor(src): change affine to AFFiNE in string

This commit is contained in:
tzhangchi 2022-08-01 14:27:26 +08:00
parent 3708ef5370
commit b5cc15287f
14 changed files with 16 additions and 16 deletions

View File

@ -5,7 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://app.affine.pro/favicon.ico" /> <link rel="icon" href="https://app.affine.pro/favicon.ico" />
<title>Affine | Local Dev Environment</title> <title>AFFiNE | Local Dev Environment</title>
<script> <script>
window.global = window; window.global = window;
</script> </script>

View File

@ -3,7 +3,7 @@ import React from 'react';
export const UIPage = () => { export const UIPage = () => {
return ( return (
<div className=""> <div className="">
This page is used to show ui components of Affine ~ This page is used to show ui components of AFFiNE ~
</div> </div>
); );
}; };

View File

@ -161,7 +161,7 @@ module.exports = function (webpackConfig) {
}), }),
isProd && isProd &&
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
title: 'Affine - All In One Workos', title: 'AFFiNE - All In One Workos',
favicon: path.resolve( favicon: path.resolve(
__dirname, __dirname,
'./src/assets/images/favicon.ico' './src/assets/images/favicon.ico'

View File

@ -1,7 +1,7 @@
## Affine Icons ## AFFiNE Icons
> Abundant and colorful icon resource for free free use > Abundant and colorful icon resource for free free use
Website: [http://localhost:4200/tools/icons](http://localhost:4200/tools/icons) Website: [http://localhost:4200/tools/icons](http://localhost:4200/tools/icons)
Figma: [Figma Affine Icons](https://www.figma.com/file/7pyx5gMz6CN0qSRADmScQ7/AFFINE?node-id=665%3A1734) Figma: [Figma AFFiNE Icons](https://www.figma.com/file/7pyx5gMz6CN0qSRADmScQ7/AFFINE?node-id=665%3A1734)

View File

@ -1,6 +1,6 @@
# Tutorial # Tutorial
Affine defines a new component development specification in Figma, extends Affine UI Components based on MUI BASE and MUI SYSTEM, and supplements as needed https://github.com/toeverything/AFFiNE/tree/master/libs/components/ui , eg `src/libs/components/ui/src/button/base-button.ts` AFFiNE defines a new component development specification in Figma, extends AFFiNE UI Components based on MUI BASE and MUI SYSTEM, and supplements as needed https://github.com/toeverything/AFFiNE/tree/master/libs/components/ui , eg `src/libs/components/ui/src/button/base-button.ts`
```jsx ```jsx
import ButtonUnstyled, { import ButtonUnstyled, {

View File

@ -106,7 +106,7 @@ export const Firebase = () => {
/> />
<MuiGrid item xs={8}> <MuiGrid item xs={8}>
<Error <Error
title="Welcome to Affine" title="Welcome to AFFiNE"
subTitle="blocks of knowledge to power your team" subTitle="blocks of knowledge to power your team"
action1Text="Login &nbsp; or &nbsp; Register" action1Text="Login &nbsp; or &nbsp; Register"
/> />

View File

@ -6,7 +6,7 @@ export const LogoImg = ({ style = {} }: { style: CSSProperties }) => {
<img <img
style={style} style={style}
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABzJJREFUeNrs3T1SHEcUAOAxpQOQON/EOcpdFpwAfAKhE0ikToBEqawTCG6ATiDkUu7NnaxjJXsET0uDDOiHfrM9fzvfV7VFMgzN9Mzr1z3dvVUFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBhP5U82c+//rGofyweOGz18cPLlUsPw3tU+Hyn9ef4gWOW9edxX/9gHZRSeZ6O7Lqf1EFwObEyP/tR4P7t+T9nTf3nOP/r9S9nGXW3X/94l3G+VK7HdfnWBe+b9Hf3Mw8/qP/2dcY5X9U/9rY5ABxlHLOXMoUes4BFoCL7sPrRwz/iMo85a0vX60X9OavGbW9k9XqxUzBipod/N/Pw5zPOus6VuROn9T24VxGq152CJ4ukrEczveCpJb1Q5s688kznt/4pqysSAOrIuxt8qBczjdZa/27tN+MnZNZrqQygTYv+dGYXXOvfUxbQNEg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7vMw850EFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMC2+0+AAQDgljs/XVSdVAAAAABJRU5ErkJggg=="
alt="Affine Logo" alt="AFFiNE Logo"
/> />
); );
}; };

View File

@ -59,7 +59,7 @@ export class Editor implements Virgo {
public bdCommands: Commands; public bdCommands: Commands;
public ui_container?: HTMLDivElement; public ui_container?: HTMLDivElement;
public version = '0.0.1'; public version = '0.0.1';
public copyright = '@Affine 2019-2022'; public copyright = '@AFFiNE 2020-2022';
private plugin_manager: PluginManager; private plugin_manager: PluginManager;
private hooks: Hooks; private hooks: Hooks;
private views: Record<string, BaseView> = {}; private views: Record<string, BaseView> = {};

View File

@ -34,7 +34,7 @@ const FileExporter = {
</html>`; </html>`;
}, },
decoreateAffineBrand: (pageTitle: string) => { decoreateAffineBrand: (pageTitle: string) => {
return pageTitle + ` Created in Affine`; return pageTitle + ` Created in AFFiNE`;
}, },
exportHtml: (pageTitle: string, htmlContent: string) => { exportHtml: (pageTitle: string, htmlContent: string) => {
FileExporter.exportFile( FileExporter.exportFile(

View File

@ -34,7 +34,7 @@ export const fileExporter = {
</html>`; </html>`;
}, },
decoreateAffineBrand: (pageTitle: string) => { decoreateAffineBrand: (pageTitle: string) => {
return pageTitle + ` Created in Affine`; return pageTitle + ` Created in AFFiNE`;
}, },
exportHtml: (pageTitle: string, htmlContent: string) => { exportHtml: (pageTitle: string, htmlContent: string) => {
fileExporter.exportFile( fileExporter.exportFile(

View File

@ -200,7 +200,7 @@ const groupTemplateMap: GroupTemplateMap = {
text: { text: {
value: [ value: [
{ {
text: 'As a collaborative real-time editor, Affine aims to resolve problems in three situations:', text: 'As a collaborative real-time editor, AFFiNE aims to resolve problems in three situations:',
}, },
], ],
}, },

View File

@ -13,7 +13,7 @@ const defaultTemplateList: Array<TemplateMeta> = [
const TemplateFactory = { const TemplateFactory = {
defaultTemplateList: defaultTemplateList, defaultTemplateList: defaultTemplateList,
generatePageTemplateByGroupKeys(props: TemplateMeta): Template { generatePageTemplateByGroupKeys(props: TemplateMeta): Template {
const newTitle = props.name || 'Get Started with Affine'; const newTitle = props.name || 'Get Started with AFFiNE';
const keys = props.groupKeys || []; const keys = props.groupKeys || [];
const blankPage: Template = { const blankPage: Template = {
type: 'page', type: 'page',

View File

@ -343,10 +343,10 @@ export class YjsAdapter implements AsyncDatabaseAdapter<YjsContentOperation> {
const handles = await window.showOpenFilePicker({ const handles = await window.showOpenFilePicker({
types: [ types: [
{ {
description: 'Affine Package', description: 'AFFiNE Package',
accept: { accept: {
// eslint-disable-next-line @typescript-eslint/naming-convention // eslint-disable-next-line @typescript-eslint/naming-convention
'application/affine': ['.apk'], 'application/AFFiNE': ['.apk'],
}, },
}, },
], ],

View File

@ -1,4 +1,4 @@
/** user model for Affine */ /** user model for AFFiNE */
export type UserInfo = { export type UserInfo = {
id: string; id: string;
nickname: string; nickname: string;