Skip to content

Commit

Permalink
1.13.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
karamem0 committed Aug 8, 2024
1 parent ab14fae commit b4b0620
Show file tree
Hide file tree
Showing 19 changed files with 58 additions and 24 deletions.
8 changes: 5 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
HTTPS=true
BROWSER=none
VITE_MSAL_AUTHORITY=https://login.microsoftonline.com/{{APP_TENANT_ID}}
VITE_MSAL_CLIENT_ID={{APP_CLIENT_ID}}
VITE_PUBLIC_URL=https://{{APP_DOMAIN_NAME}}
VITE_TELEMETRY_CONNECTION_STRING={{TELEMETRY_CONNECTION_STRING}}
VITE_MSAL_AUTHORITY={{MSAL_AUTHORITY}}
VITE_MSAL_CLIENT_ID={{MSAL_CLIENT_ID}}
VITE_PUBLIC_URL={{PUBLIC_URL}}
18 changes: 10 additions & 8 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- develop

env:
BUILD_VERSION: '1.13.4'
BUILD_VERSION: '1.13.5'

jobs:
select-environment:
Expand Down Expand Up @@ -40,18 +40,19 @@ jobs:
- name: Update microsoft-identity-association.json
shell: pwsh
run: |
$path = 'public/.well-known/microsoft-identity-association.json'
$content = Get-Content -Path $path
$content = $content -replace "{{MSAL_CLIENT_ID}}", "${{secrets.MSAL_CLIENT_ID}}"
Out-File -FilePath $path -InputObject $content -Encoding UTF8
$content = Get-Content -Path ${{env.FILE_PATH}}
$content = $content -replace "{{APP_CLIENT_ID}}", "${{secrets.APP_CLIENT_ID}}"
Out-File -FilePath ${{env.FILE_PATH}} -InputObject $content -Encoding UTF8
env:
FILE_PATH: public/.well-known/microsoft-identity-association.json
- name: Update .env
shell: pwsh
run: |
$content = Get-Content -Path ${{env.FILE_PATH}}
$content = $content -replace "{{TELEMETRY_CONNECTION_STRING}}", "${{secrets.TELEMETRY_CONNECTION_STRING}}"
$content = $content -replace "{{MSAL_AUTHORITY}}", "${{secrets.MSAL_AUTHORITY}}"
$content = $content -replace "{{MSAL_CLIENT_ID}}", "${{secrets.MSAL_CLIENT_ID}}"
$content = $content -replace "{{PUBLIC_URL}}", "${{secrets.PUBLIC_URL}}"
$content = $content -replace "{{APP_TENANT_ID}}", "${{secrets.APP_TENANT_ID}}"
$content = $content -replace "{{APP_CLIENT_ID}}", "${{secrets.APP_CLIENT_ID}}"
$content = $content -replace "{{APP_DOMAIN_NAME}}", "${{secrets.APP_DOMAIN_NAME}}"
Out-File -FilePath ${{env.FILE_PATH}} -InputObject $content -Encoding UTF8
env:
FILE_PATH: .env
Expand Down Expand Up @@ -80,6 +81,7 @@ jobs:
with:
fail_ci_if_error: true
token: ${{secrets.CODECOV_TOKEN}}
slug: karamem0/hitofude
deploy-client:
needs:
- select-environment
Expand Down
21 changes: 21 additions & 0 deletions README.ja-jp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Hitofude

[![.github/workflows/workflow.yml](https://github.com/karamem0/hitofude/actions/workflows/workflow.yml/badge.svg)](https://github.com/karamem0/hitofude/actions/workflows/workflow.yml)
[![codecov](https://codecov.io/gh/karamem0/hitofude/graph/badge.svg?token=T44FVSHRYS)](https://codecov.io/gh/karamem0/hitofude)
[![License](https://img.shields.io/github/license/karamem0/hitofude.svg)](https://github.com/karamem0/hitofude/blob/main/LICENSE)

オンライン Markdown エディター for Microsoft 365

## Screenshots

![screenshot](/assets/screenshot.png)

## Features

- OneDrive (個人、職場または学校) で Markdown ファイルを書くための Web アプリケーションです。
- クライアントの JavaScript コードのみで動作し、サーバーのコードを含みません。
- はじめるのは簡単です。サインインするだけです。

## Assets

アセットは [unDraw](https://undraw.co/illustrations) にライセンスされています。
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[
"formatjs",
{
"idInterpolationPattern": "[sha512:contenthash:base64:6]",
"ast": true
"ast": true,
"idInterpolationPattern": "[sha512:contenthash:base64:6]"
}
]
],
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<meta property="og:url" content="%VITE_PUBLIC_URL%" />
<meta property="og:title" content="Hitofude" />
<meta property="og:description" content="Online Markdown Editor for Microsoft 365" />
<meta property="og:image" content="%VITE_PUBLIC_URL%/assets/Books.svg" />
<meta property="og:image" content="%VITE_PUBLIC_URL%/assets/screenshot.png" />
<title>Hitofude - Online Markdown Editor for Microsoft 365</title>
</head>

Expand Down
2 changes: 1 addition & 1 deletion public/.well-known/microsoft-identity-association.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"associatedApplications": [
{
"applicationId": "{{MSAL_CLIENT_ID}}"
"applicationId": "{{APP_CLIENT_ID}}"
}
]
}
1 change: 1 addition & 0 deletions public/assets
2 changes: 1 addition & 1 deletion src/features/error/pages/Error404Page.presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Error404Page() {
`}>
<Communication
description={intl.formatMessage(messages.Error404Description)}
image="/assets/NotFound.svg"
image="/assets/svg/NotFound.svg"
title={intl.formatMessage(messages.Error404Title)} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/features/error/pages/Error500Page.presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Error500Page() {
`}>
<Communication
description={intl.formatMessage(messages.Error500Description)}
image="/assets/Warning.svg"
image="/assets/svg/Warning.svg"
title={intl.formatMessage(messages.Error500Title)} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/features/home/pages/HomePage.presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function HomePage(props: Readonly<HomePageProps>) {
</div>
</div>
<img
src="/assets/Books.svg"
src="/assets/svg/Books.svg"
css={css`
width: 20rem;
`} />
Expand Down
2 changes: 1 addition & 1 deletion src/features/main/components/ContentEmpty.presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function ContentEmpty() {
`}>
<Communication
description={intl.formatMessage(messages.NoDataDescription)}
image="/assets/BlankCanvas.svg"
image="/assets/svg/BlankCanvas.svg"
title={intl.formatMessage(messages.NoDataTitle)} />
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function ContentUnsupported() {
`}>
<Communication
description={intl.formatMessage(messages.UnsupportedFileDescription)}
image="/assets/Cancel.svg"
image="/assets/svg/Cancel.svg"
title={intl.formatMessage(messages.UnsupportedFileTitle)} />
</div>
);
Expand Down
6 changes: 5 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ import React from 'react';
import * as ReactDOM from 'react-dom/client';

import { ErrorBoundary } from 'react-error-boundary';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import {
BrowserRouter,
Route,
Routes
} from 'react-router-dom';

import { AuthenticatedTemplate, UnauthenticatedTemplate } from '@azure/msal-react';

Expand Down
10 changes: 7 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
import fs from 'fs';

import reactPlugin from '@vitejs/plugin-react';
import { defineConfig, loadEnv, Plugin } from 'vite';
import {
defineConfig,
loadEnv,
Plugin
} from 'vite';

export default defineConfig(({ mode }) => {

Expand All @@ -30,8 +34,8 @@ export default defineConfig(({ mode }) => {
[
'formatjs',
{
idInterpolationPattern: '[sha512:contenthash:base64:6]',
ast: true
ast: true,
idInterpolationPattern: '[sha512:contenthash:base64:6]'
}
]
]
Expand Down

0 comments on commit b4b0620

Please sign in to comment.