mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2025-11-28 10:18:47 +08:00
feat: support calendar (#56)
* chore: modified title sync * chore: replace console.log to console.debug * feat: add FullCalendar dependencies and improve code organization * chore: update view name bugs * chore: support no date row * chore: layout by created time and modified time * chore: adjust time * chore: pnpm install * chore: fix something
This commit is contained in:
@@ -28,7 +28,7 @@ if (!fs.existsSync(fullTargetPath)) {
|
||||
|
||||
if (fs.existsSync(fullTargetPath)) {
|
||||
// unlink existing symlink
|
||||
console.log(chalk.yellow(`unlinking existing symlink: `) + chalk.blue(`${fullTargetPath}`));
|
||||
console.debug(chalk.yellow(`unlinking existing symlink: `) + chalk.blue(`${fullTargetPath}`));
|
||||
fs.unlinkSync(fullTargetPath);
|
||||
}
|
||||
|
||||
@@ -38,6 +38,6 @@ fs.symlink(fullSourcePath, fullTargetPath, 'junction', (err) => {
|
||||
console.error(chalk.red(`error creating symlink: ${err.message}`));
|
||||
process.exit(1);
|
||||
}
|
||||
console.log(chalk.green(`symlink created: `) + chalk.blue(`${fullSourcePath}`) + ' -> ' + chalk.blue(`${fullTargetPath}`));
|
||||
console.debug(chalk.green(`symlink created: `) + chalk.blue(`${fullSourcePath}`) + ' -> ' + chalk.blue(`${fullTargetPath}`));
|
||||
|
||||
});
|
||||
|
||||
@@ -58,4 +58,4 @@ fs.writeFileSync(tailwindConfigFilePath, tailwindColorTemplate, 'utf-8');
|
||||
const tailwindShadowFilePath = path.join(__dirname, '../tailwind/box-shadow.cjs');
|
||||
fs.writeFileSync(tailwindShadowFilePath, tailwindShadowTemplate, 'utf-8');
|
||||
|
||||
console.log('Tailwind CSS colors configuration generated successfully.');
|
||||
console.debug('Tailwind CSS colors configuration generated successfully.');
|
||||
|
||||
@@ -58,7 +58,7 @@ const main = () => {
|
||||
const categories = processSvgFiles(iconsDirPath);
|
||||
const outputFilePath = path.join(iconsDirPath, 'icons.json');
|
||||
outputJson(categories, outputFilePath);
|
||||
console.log(`JSON data has been written to ${outputFilePath}`);
|
||||
console.debug(`JSON data has been written to ${outputFilePath}`);
|
||||
};
|
||||
|
||||
main();
|
||||
|
||||
@@ -29,7 +29,7 @@ fs.copyFileSync(path.join(__dirname, '../coverage/merged/coverage-final.json'),
|
||||
|
||||
// Generate final merged report
|
||||
execSync('nyc report --reporter=html --reporter=text-summary --report-dir=coverage/merged --temp-dir=coverage/.nyc_output', { stdio: 'inherit' });
|
||||
console.log(`Merged coverage report written to coverage/merged`);
|
||||
console.debug(`Merged coverage report written to coverage/merged`);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ const path = require('path');
|
||||
function ensureDirectoryExists (dirPath) {
|
||||
if (!fs.existsSync(dirPath)) {
|
||||
fs.mkdirSync(dirPath, { recursive: true });
|
||||
console.log(`Created directory: ${dirPath}`);
|
||||
console.debug(`Created directory: ${dirPath}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ function convertDesignTokens (primitiveFilePath, semanticFilePath, outputFilePat
|
||||
|
||||
// Write file
|
||||
fs.writeFileSync(outputFilePath, css, 'utf8');
|
||||
console.log(`CSS variables written to ${outputFilePath}`);
|
||||
console.debug(`CSS variables written to ${outputFilePath}`);
|
||||
|
||||
return { variableNames };
|
||||
}
|
||||
@@ -237,7 +237,7 @@ ensureDirectoryExists(cssOutputDir);
|
||||
ensureDirectoryExists(tailwindOutputDir);
|
||||
|
||||
// Execute conversion
|
||||
console.log('Converting design tokens to CSS variables...');
|
||||
console.debug('Converting design tokens to CSS variables...');
|
||||
|
||||
// Collect all variable names
|
||||
let allVariableNames = [];
|
||||
@@ -261,9 +261,9 @@ const darkResult = convertDesignTokens(
|
||||
// Dark theme variables are the same as light theme, no need to merge
|
||||
|
||||
// Generate Tailwind color configuration
|
||||
console.log('Generating Tailwind color configuration with CSS variable references...');
|
||||
console.debug('Generating Tailwind color configuration with CSS variable references...');
|
||||
const tailwindColors = createTailwindColorsFromVariables(allVariableNames);
|
||||
fs.writeFileSync(path.join(tailwindOutputDir, 'new-colors.cjs'), tailwindColors);
|
||||
console.log(`Tailwind colors written to ${path.join(tailwindOutputDir, 'new-colors.cjs')}`);
|
||||
console.debug(`Tailwind colors written to ${path.join(tailwindOutputDir, 'new-colors.cjs')}`);
|
||||
|
||||
console.log('Conversion completed successfully!');
|
||||
console.debug('Conversion completed successfully!');
|
||||
Reference in New Issue
Block a user